.htaccess 1.1 KB

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