I am currently caching my CSS, JS and images using
deflate in my Apache configuration.
Here's my code:
AddOutputFilterByType DEFLATE text/plain
AddOutputFilterByType DEFLATE text/html
AddOutputFilterByType DEFLATE text/xml
AddOutputFilterByType DEFLATE application/xml
AddOutputFilterByType DEFLATE application/xhtml+xml
AddOutputFilterByType DEFLATE application/rss+xml
AddOutputFilterByType DEFLATE text/css
Now when I check my header I see:
User-Agent Mozilla/5.0 (X11; Linux i686; rv:6.0.2) Gecko/20100101 Firefox/6.0.2
Accept-Encoding gzip, deflate
If-Modified-Since Fri, 30 Sep 2011 01:05:01 GMT
Everything looks good, the
gzip, deflate which is what I want but now I see the
Will that defeat the purpose of caching using deflate? Is that mean it's only caching for 1 day and the next day it won't cache it or it will have to reload it?
Note: My images rarely change, my CSS and JS change once a week.