Skip to content

Commit

Permalink
Docker apache configs: No cache for html files
Browse files Browse the repository at this point in the history
With this change, html files are no longer kept in browser cache so you
no longer need to explicitly reload a page after an update of the
application
  • Loading branch information
quartje committed Oct 4, 2023
1 parent 1f813d0 commit b338643
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
6 changes: 6 additions & 0 deletions client/docker/appconf.conf
Original file line number Diff line number Diff line change
Expand Up @@ -51,3 +51,9 @@ DocumentRoot /var/www/
Options -Indexes
</Directory>

<FilesMatch "\.html$">
FileETag None
Header unset ETag
Header set Cache-Control "max-age=0, no-cache, no-store, must-revalidate"
Header set Expires "Sun, 8 Jun 1986 08:06:00 GMT"
</FilesMatch>
6 changes: 6 additions & 0 deletions welcome/docker/appconf.conf
Original file line number Diff line number Diff line change
Expand Up @@ -44,4 +44,10 @@ DocumentRoot /var/www/
Require all granted
Options -Indexes
</Directory>
<FilesMatch "\.html$">
FileETag None
Header unset ETag
Header set Cache-Control "max-age=0, no-cache, no-store, must-revalidate"
Header set Expires "Sun, 8 Jun 1986 08:06:00 GMT"
</FilesMatch>

0 comments on commit b338643

Please sign in to comment.