]> git.evergreen-ils.org Git - Evergreen.git/blob - docs/RELEASE_NOTES_NEXT/Architecture/do-not-cache-angular-root.adoc
c01ea749474db97549a17cdf7e84fdb001e7e5cc
[Evergreen.git] / docs / RELEASE_NOTES_NEXT / Architecture / do-not-cache-angular-root.adoc
1 Do not cache the Angular application root
2 ^^^^^^^^^^^^^
3
4 Evergreen administrators should update existing apache configuration files
5 so that the Angular index.html file is never cached by the client.  This
6 can be done by changing the Angular setup section of the apache configuration
7 that starts with:
8
9 [source]
10 ----
11 <Directory "/openils/var/web/eg2/en-US">
12 ----
13
14 or similar in the apache configuration. Add the following after the
15 FallbackResource directive:
16
17 [source]
18 ----
19     <Files "index.html">
20       <IfModule mod_headers.c>
21         Header set Cache-Control "no-cache, no-store, must-revalidate"
22         Header set Pragma "no-cache"
23         Header set Expires 0
24       </IfModule>
25     </Files>
26 ----
27
28 Finally, ensure that the mod_headers apache module is enabled by running the
29 following commands on all apache servers as the root user:
30
31 [source]
32 ----
33 a2enmod headers
34 sudo /etc/init.d/apache2 restart
35 ----
36