swte

Swift Performance CF cache

Sep 21st, 2018
289
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.00 KB | None | 0 0
  1. <IfModule mod_headers.c>
  2. Header set Connection keep-alive
  3.  
  4. # Cache-control headers
  5. # 2 HOURS
  6. #<filesMatch "*">
  7. Header set Cache-Control "max-age=7200, must-revalidate"
  8. #</filesMatch>
  9.  
  10. # 480 weeks - 290304000
  11. # 2 WEEKS
  12. <filesMatch "\.(ico|pdf|flv|jpg|jpeg|png|gif|js|swf)$">
  13. Header set Cache-Control "max-age=1209600, public"
  14. </filesMatch>
  15.  
  16. # 1 DAY
  17. <filesMatch "\.(css)$">
  18. Header set Cache-Control "max-age=86400, public, must-revalidate"
  19. #Header set Cache-Control "max-age=0, public, must-revalidate"
  20. </filesMatch>
  21.  
  22. # 2 DAYS
  23. <filesMatch "\.(xml|txt)$">
  24. Header set Cache-Control "max-age=172800, public, must-revalidate"
  25. </filesMatch>
  26.  
  27. # 2 HOURS
  28. <filesMatch "\.(html|htm)$">
  29. Header set Cache-Control "max-age=7200, must-revalidate"
  30. </filesMatch>
  31.  
  32. <FilesMatch "\.(gif|jpg|png|ico|css|js|pdf|txt)$">
  33. Header append Cache-Control "public"
  34. </FilesMatch>
  35. </IfModule>
Add Comment
Please, Sign In to add comment