biigle / core

:large_blue_circle: Application core of BIIGLE
https://biigle.de
GNU General Public License v3.0
12 stars 16 forks source link

Apache browser caching #58

Closed mzur closed 6 years ago

mzur commented 7 years ago

Set up the .htaccess so the Apache includes caching headers like this:

<IfModule mod_expires.c>
  ExpiresActive On
  ExpiresDefault "access plus 1 seconds"
  ExpiresByType image/jpeg "access plus 1 month"
  ExpiresByType image/png "access plus 1 month"
  ExpiresByType text/css "access plus 1 month"
  ExpiresByType text/javascript "access plus 1 month"
  ExpiresByType application/x-javascript "access plus 1 month"
</IfModule>

Our cache busting setup should take care of updates to CSS and JS.

mzur commented 6 years ago

Will become obsolete when we switch to our Docker based setup. Maintainers of the BIIGLE instances have to take care of this.