reduce caching
This commit is contained in:
parent
69af529410
commit
be0642c389
|
|
@ -25,6 +25,14 @@ www.bizmatch.net {
|
||||||
root * /home/aknuth/git/bizmatch-project/bizmatch-server # Prod-Ordner
|
root * /home/aknuth/git/bizmatch-project/bizmatch-server # Prod-Ordner
|
||||||
file_server
|
file_server
|
||||||
}
|
}
|
||||||
|
# Statische Dateien (CSS, JS, Bilder) – lange cachen, da sich der Name bei Änderungen ändert
|
||||||
|
header /assets/* Cache-Control "public, max-age=31536000, immutable"
|
||||||
|
header /*.css Cache-Control "public, max-age=31536000, immutable"
|
||||||
|
header /*.js Cache-Control "public, max-age=31536000, immutable"
|
||||||
|
|
||||||
|
# Die index.html und API-Antworten – NIEMALS cachen
|
||||||
|
header /index.html Cache-Control "no-cache, no-store, must-revalidate"
|
||||||
|
|
||||||
#handle {
|
#handle {
|
||||||
# root * /home/aknuth/git/bizmatch-project-prod/bizmatch/dist/bizmatch/browser # Neuer Prod-Dist-Ordner
|
# root * /home/aknuth/git/bizmatch-project-prod/bizmatch/dist/bizmatch/browser # Neuer Prod-Dist-Ordner
|
||||||
# try_files {path} {path}/ /index.html
|
# try_files {path} {path}/ /index.html
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue