Guest User

Untitled

a guest
Jul 18th, 2018
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.12 KB | None | 0 0
  1. <ifModule mod_expires.c>
  2. ExpiresActive On
  3. ExpiresDefault "access plus 1 seconds"
  4. ExpiresByType text/html "access plus 3600 seconds"
  5. ExpiresByType image/gif "access plus 1 years"
  6. ExpiresByType image/jpeg "access plus 1 years"
  7. ExpiresByType image/png "access plus 1 years"
  8. ExpiresByType image/x-icon "access plus 1 years"
  9. ExpiresByType text/css "access plus 1 weeks"
  10. ExpiresByType text/javascript "access plus 1 months"
  11. ExpiresByType application/x-javascript "access plus 1 months"
  12. ExpiresByType application/javascript "access plus 1 months"
  13. </ifModule>
  14.  
  15. <ifModule mod_headers.c>
  16. Header unset ETag
  17. </ifModule>
  18. FileETag None
  19.  
  20. <ifModule mod_headers.c>
  21. Header unset Last-Modified
  22. </ifModule>
  23.  
  24. #RewriteCond %{HTTP_ACCEPT} application/xhtml\+xml
  25. #RewriteRule \.html$ - [T=application/xhtml+xml;charset=utf-8]
  26.  
  27.  
  28. Header add Vary accept-encoding
  29. RewriteEngine on
  30. RewriteCond %{HTTP:accept-encoding} gzip
  31. RewriteCond %{REQUEST_FILENAME} !\.gz$
  32. RewriteCond %{REQUEST_FILENAME}.gz -f
  33. RewriteRule (.*) $1.gz
  34. RewriteRule ^/rss$ /atom.xml [R=301,L]
  35.  
  36. ErrorDocument 404 /404.html
  37.  
  38. DirectorySlash off
Add Comment
Please, Sign In to add comment