Guest User

Untitled

a guest
Feb 20th, 2018
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.35 KB | None | 0 0
  1. # protect tpl files from being stolen
  2. <Files ~ ".tpl$">
  3. Order allow,deny
  4. Deny from all
  5. </Files>
  6.  
  7. # DISABLE ETAGS
  8. <FilesMatch ".(ico|pdf|flv|jpe?g?|png|gif|js|css|swf|txt|mp3|avi|mpe?g?|wmv)$">
  9. FileETag None
  10. <IfModule mod_headers.c>
  11. Header unset ETag
  12. </IfModule>
  13. </FilesMatch>
  14.  
  15. # FILE COMPRESSION
  16. <IfModule mod_deflate.c>
  17. AddOutputFilterByType DEFLATE text/html text/plain text/xml text/css application/x-javascript application/javascript
  18. </IfModule>
  19.  
  20. # CACHE LENGTH
  21. <IfModule mod_expires.c>
  22. ExpiresActive On
  23. ExpiresDefault "access plus 4 weeks"
  24. ExpiresByType image/x-icon "access plus 4 months"
  25. ExpiresByType image/gif "access plus 4 weeks"
  26. ExpiresByType image/png "access plus 4 weeks"
  27. ExpiresByType image/jpeg "access plus 4 weeks"
  28. ExpiresByType text/css "access plus 4 weeks"
  29. ExpiresByType application/x-javascript "access plus 4 weeks"
  30. ExpiresByType text/plain "access plus 4 weeks"
  31. ExpiresByType application/x-shockwave-flash "access plus 4 months"
  32. ExpiresByType application/pdf "access plus 4 weeks"
  33. ExpiresByType text/html "access plus 4 weeks"
  34. </IfModule>
  35.  
  36. # NEVER CACHE
  37. <IfModule mod_headers.c>
  38. <FilesMatch ".(html|cgi|php|htm)$">
  39. Header set Expires "Thu, 01 Dec 2003 16:00:00 GMT"
  40. Header set Cache-Control "no-store, no-cache, must-revalidate"
  41. Header set Pragma "no-cache"
  42. </FilesMatch>
  43. </IfModule>
Add Comment
Please, Sign In to add comment