Guest User

Untitled

a guest
May 27th, 2018
104
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.71 KB | None | 0 0
  1. <IfModule mod_headers.c>
  2. Header set Connection keep-alive
  3. <filesmatch ".(ico|flv|gif|swf|eot|woff|otf|ttf|svg)$">
  4. Header set Cache-Control "max-age=2592000, public"
  5. </filesmatch>
  6. <filesmatch ".(jpg|jpeg|png)$">
  7. Header set Cache-Control "max-age=1209600, public"
  8. </filesmatch>
  9. # css and js should use private for proxy caching https://developers.google.com/speed/docs/best-practices/caching#LeverageProxyCaching
  10. <filesmatch ".(css)$">
  11. Header set Cache-Control "max-age=31536000, private"
  12. </filesmatch>
  13. <filesmatch ".(js)$">
  14. Header set Cache-Control "max-age=1209600, private"
  15. </filesmatch>
  16. <filesMatch ".(x?html?|php)$">
  17. Header set Cache-Control "max-age=600, private, must-revalidate"
  18. </filesMatch>
Add Comment
Please, Sign In to add comment