cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Did you get called away in the middle of writing a post? Don't worry you can find your unfinished post later in the Drafts section of your profile page. X

Apache Caching question

JoePriest
8-Gravel

Apache Caching question

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

0 REPLIES 0
Top Tags