.htaccess 1.5 KB

1234567891011121314151617181920212223242526272829303132333435
  1. #########################################################################################################################
  2. # Apache configuration (REQUIRED for correct HTML5 cache functionality in browsers):
  3. # 1.) You NEED to enable the following Apache modules: mod_mime, mod_headers (optionally you can also enable mod_deflate)
  4. # 2.) You NEED to add the following lines into your Apache vhost configuration (without the # character):
  5. # <Directory /client/installation/directory/>
  6. # AllowOverride FileInfo Limit
  7. # <IfVersion >= 2.3>
  8. # Require all granted
  9. # </IfVersion>
  10. # <IfVersion < 2.3>
  11. # Order allow,deny
  12. # Allow from all
  13. # </IfVersion>
  14. # </Directory>
  15. #########################################################################################################################
  16. # Add "Content-Type: text/cache-manifest" header for .manifest files
  17. <IfModule mod_mime.c>
  18. AddType text/cache-manifest .manifest
  19. </IfModule>
  20. # Add "Cache-Control: max-age=0, must-revalidate, no-cache, no-transform, private" header for all files
  21. # for more information see: https://tools.ietf.org/html/rfc7234
  22. <IfModule mod_headers.c>
  23. Header set Cache-Control "max-age=0, must-revalidate, no-cache, no-transform, private"
  24. </IfModule>
  25. <IfModule mod_deflate.c>
  26. SetOutputFilter DEFLATE
  27. </IfModule>
  28. # If you use mod_cache set the correct path for the cache.manifest here
  29. #<IfModule mod_cache.c>
  30. # CacheDisable cache.manifest
  31. #</IfModule>