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 ac1ac80
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions client/docker/appconf.conf
Original file line number Diff line number Diff line change
Expand Up @@ -51,3 +51,7 @@ DocumentRoot /var/www/
Options -Indexes
</Directory>

<FilesMatch "\.html$">
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>
4 changes: 4 additions & 0 deletions welcome/docker/appconf.conf
Original file line number Diff line number Diff line change
Expand Up @@ -44,4 +44,8 @@ DocumentRoot /var/www/
Require all granted
Options -Indexes
</Directory>
<FilesMatch "\.html$">
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 ac1ac80

Please sign in to comment.