Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ExpiresActive On
- <FilesMatch "\.(ico|pdf|flv|jpg|jpeg|png|gif|js|css|ai|eps|psd|zip)$">
- # Only need to set one of etag OR last-modified. Go with last-modified
- # as recommended by Google Page Speed.
- FileETag None
- # If Last-Modified is sufficiently far back chances are browser will not
- # refetch asset (Google Page Speed).
- Header set Last-Modified "Mon, 10 Jan 2005 10:00:00 GMT"
- # Set Cache-Control to public, this will overwrite the max-age header
- # set by ExpiresDefault (max-age AND Expires are not both needed according
- # to Google Page Speed). Public cache-control means proxies may cache static
- # assets, also allows Firefox to cache assets over SSL.
- Header set Cache-Control "public"
- # Deliberately set to almost a year, just in case some weirdness could ever
- # happen if we slightly exceeded a year due to time zone inconsistencies.
- ExpiresDefault "now plus 51 weeks"
- </FilesMatch>
- <FilesMatch "favicon\.ico$">
- # Treat favicon.ico bit differently as some browsers may not use the favicon
- # fingerprinted path given in the page head tag.
- ExpiresDefault "now plus 1 month"
- </FilesMatch>
Add Comment
Please, Sign In to add comment