Apache module to strip javascript comments before service a page?

Discussion in 'Apache' started by fizgig, Aug 3, 2010.

  1. #1
    I write a ton of comments and would like apache to strip them before serving the page. Is there any easy way to do this automatically without my having to do it before hand?
     
    fizgig, Aug 3, 2010 IP
  2. tolra

    tolra Active Member

    Messages:
    515
    Likes Received:
    36
    Best Answers:
    1
    Trophy Points:
    80
    #2
    I'd feed the .js files through http://developer.yahoo.com/yui/compressor/ and upload the compressed version, you can automate it if you want to do it on the server by using a 404 handler or feeding the JS through PHP.
     
    tolra, Aug 4, 2010 IP