Advertisement
Guest User

Untitled

a guest
Nov 19th, 2018
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.32 KB | None | 0 0
  1. # BEGIN WordPress
  2. <IfModule mod_rewrite.c>
  3. RewriteEngine On
  4. RewriteBase /
  5. RewriteRule ^index\.php$ - [L]
  6. RewriteCond %{REQUEST_FILENAME} !-f
  7. RewriteCond %{REQUEST_FILENAME} !-d
  8. RewriteRule . /index.php [L]
  9. </IfModule>
  10.  
  11. # START EXPIRES CACHING #
  12. ExpiresActive On
  13. ExpiresByType text/css "access 1 month"
  14. ExpiresByType text/html "access 1 month"
  15. ExpiresByType image/gif "access 1 year"
  16. ExpiresByType image/png "access 1 year"
  17. ExpiresByType image/jpg "access 1 year"
  18. ExpiresByType image/jpeg "access 1 year"
  19. ExpiresByType image/x-icon "access 1 year"
  20. ExpiresByType application/pdf "access 1 month"
  21. ExpiresByType application/javascript "access 1 month"
  22. ExpiresByType text/x-javascript "access 1 month"
  23. ExpiresByType application/x-shockwave-flash "access 1 month"
  24. ExpiresDefault "access 1 month"
  25. # END EXPIRES CACHING #
  26.  
  27. # BEGIN Cache-Control Headers
  28. <ifModule mod_headers.c>
  29. <filesMatch "\.(ico|jpe?g|png|gif|swf)$">
  30. Header set Cache-Control "public"
  31. </filesMatch>
  32. <filesMatch "\.(css)$">
  33. Header set Cache-Control "public"
  34. </filesMatch>
  35. <filesMatch "\.(js)$">
  36. Header set Cache-Control "private"
  37. </filesMatch>
  38. <filesMatch "\.(x?html?|php)$">
  39. Header set Cache-Control "private, must-revalidate"
  40. </filesMatch>
  41. </ifModule>
  42. # END Cache-Control Headers
  43.  
  44. # BEGIN Turn ETags Off
  45. FileETag None
  46. # END Turn ETags Off
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement