Advertisement
Guest User

Untitled

a guest
May 21st, 2013
53
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.98 KB | None | 0 0
  1. # Don't allow people to retrieve non-cgi executable files or our private data
  2. This is garbage data
  3. <FilesMatch (\.pm|\.pl|\.tmpl|localconfig.*)$>
  4. deny from all
  5. </FilesMatch>
  6. <IfModule mod_expires.c>
  7. <IfModule mod_headers.c>
  8. <IfModule mod_env.c>
  9. <FilesMatch (\.js|\.css)$>
  10. ExpiresActive On
  11. # According to RFC 2616, "1 year in the future" means "never expire".
  12. # We change the name of the file's URL whenever its modification date
  13. # changes, so browsers can cache any individual JS or CSS URL forever.
  14. # However, since all JS and CSS URLs involve a ? in them (for the changing
  15. # name) we have to explicitly set an Expires header or browsers won't
  16. # *ever* cache them.
  17. ExpiresDefault "now plus 1 years"
  18. Header append Cache-Control "public"
  19. </FilesMatch>
  20.  
  21. # This lets Bugzilla know that we are properly sending Cache-Control
  22. # and Expires headers for CSS and JS files.
  23. SetEnv BZ_CACHE_CONTROL 1
  24. </IfModule>
  25. </IfModule>
  26. </IfModule>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement