.htaccess 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. <IfModule mod_dir.c>
  2. DirectoryIndex index.php index.html
  3. </IfModule>
  4. FileETag None
  5. AddDefaultCharset UTF-8
  6. <IfModule mod_mime.c>
  7. AddType application/json .map
  8. AddType application/font-woff .woff
  9. AddType application/font-woff2 .woff2
  10. AddCharset UTF-8 .css
  11. AddCharset UTF-8 .html
  12. AddCharset UTF-8 .js
  13. </IfModule>
  14. <IfModule mod_deflate.c>
  15. AddOutputFilterByType DEFLATE application/javascript application/json application/xhtml+xml image/svg+xml text/css text/html text/javascript
  16. </IfModule>
  17. <IfModule mod_expires.c>
  18. ExpiresActive on
  19. ExpiresByType application/font-woff "access plus 1 month"
  20. ExpiresByType application/font-woff2 "access plus 1 month"
  21. ExpiresByType application/javascript "access plus 1 month"
  22. ExpiresByType application/xhtml+xml "access plus 1 month"
  23. ExpiresByType image/x-icon "access plus 1 month"
  24. ExpiresByType text/html "access plus 1 month"
  25. ExpiresByType text/javascript "access plus 1 month"
  26. <FilesMatch "\.php$">
  27. ExpiresActive Off
  28. </FilesMatch>
  29. </IfModule>
  30. <IfModule mod_headers.c>
  31. <FilesMatch "\.(css|gif|html|ico|js|png|svg|woff|woff2)$">
  32. Header merge Cache-Control "public"
  33. </FilesMatch>
  34. Header edit Set-Cookie ^(.*)$ "$1; SameSite=Lax"
  35. </IfModule>