Community Tip - Did you get an answer that solved your problem? Please mark it as an Accepted Solution so others with the same problem can find the answer easily. X
I'm experimenting with enabling Apache caching using the mod_expires module. I'm trying to configure it by MIMEType by using the following:
ExpiresByType text/html "access plus 1 day"
ExpiresByType text/css "access plus 1 day"
ExpiresByType text/javascript "access plus 1 day"
ExpiresByType image/gif "access plus 1 month"
ExpiresByType image/jpeg "access plus 1 month"
ExpiresByType image/png "access plus 1 month"
I'm finding thattheimagefiles are being given the proper expires value but I can't get the JS (Javascript) pages to cache. I'm thinking that they would be a good candidate for some expiration settings as they don't change often. Plus, being text files, they are large (even after compression; mod_deflate) they having them cached (with a 200 result) would be ideal especially for our WAN users.
Has anyone got this to work? Or, is this not a good thing to try and target the JS files?
Joe