Advertisement
Guest User

Untitled

a guest
Aug 10th, 2011
933
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.95 KB | None | 0 0
  1. # BEGIN supercache
  2. <IfModule mod_mime.c>
  3. <FilesMatch "\.html\.gz$">
  4. ForceType text/html
  5. FileETag None
  6. </FilesMatch>
  7. AddEncoding gzip .gz
  8. AddType text/html .gz
  9. </IfModule>
  10. <IfModule mod_deflate.c>
  11. SetEnvIfNoCase Request_URI \.gz$ no-gzip
  12. </IfModule>
  13. <IfModule mod_headers.c>
  14. Header set Vary "Accept-Encoding, Cookie"
  15. Header set Cache-Control 'max-age=86400, must-revalidate'
  16. </IfModule>
  17. <IfModule mod_expires.c>
  18. ExpiresActive On
  19. ExpiresByType text/html A86400
  20. </IfModule>
  21.  
  22. # END supercache
  23.  
  24. # BEGIN Cache-Control Headers - added by me
  25. <ifmodule mod_headers.c>
  26. <filesmatch "\.(flv|gif|jpg|jpeg|png|ico|swf)$">
  27. Header set Cache-Control "max-age=86400"
  28. </filesmatch>
  29. <filesmatch "\.(css|pdf)$">
  30. Header set Cache-Control "max-age=86400"
  31. </filesmatch>
  32. <filesmatch "\.(js)$">
  33. Header set Cache-Control "max-age=86400, private"
  34. </filesmatch>
  35. </ifmodule>
  36.  
  37. # END Cache-Control Headers
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement