Added caching w/ mod_expires mod_headers, same picture loads 20 times
-
Hey,
I added the code that was on one of your recommended links and now a picture that I have in a widget loads over 25x according to pingdom. Is there an easy solution to make it only load one time.
Thanks,
Andrew Wilson
Here is the code I added to .htaccess:
# Turn on Expires and set default to 0
ExpiresActive On
ExpiresDefault A0# Set up caching on media files for 1 year (forever?)
ExpiresDefault A29030400
Header append Cache-Control “public”# Set up caching on media files for 1 week
ExpiresDefault A604800
Header append Cache-Control “public”# Set up 2 Hour caching on commonly updated files
ExpiresDefault A7200
Header append Cache-Control “proxy-revalidate”# Force no caching for dynamic files
ExpiresActive Off
Header set Cache-Control “private, no-cache, no-store, proxy-revalidate, no-transform”
Header set Pragma “no-cache”
- The topic ‘Added caching w/ mod_expires mod_headers, same picture loads 20 times’ is closed to new replies.