mirror of
https://github.com/msfjarvis/server-config
synced 2025-08-14 12:57:00 +05:30
Caddyfile: Properly setup caching
Cache contents for a week, and allow upto 10 seconds to validate the cache Signed-off-by: Harsh Shandilya <msfjarvis@gmail.com>
This commit is contained in:
parent
88f70da79b
commit
0d31cc657f
1 changed files with 1 additions and 6 deletions
|
@ -14,6 +14,7 @@
|
||||||
X-Frame-Options "SAMEORIGIN"
|
X-Frame-Options "SAMEORIGIN"
|
||||||
Feature-Policy "accelerometer 'none';ambient-light-sensor 'none'; autoplay 'none';camera 'none';encrypted-media 'none'; geolocation 'none';gyroscope 'none';magnetometer 'none';microphone 'none';midi 'none';payment 'none';picture-in-picture 'none'; speaker 'none';sync-xhr 'none';usb 'none';vr 'none'"
|
Feature-Policy "accelerometer 'none';ambient-light-sensor 'none'; autoplay 'none';camera 'none';encrypted-media 'none'; geolocation 'none';gyroscope 'none';magnetometer 'none';microphone 'none';midi 'none';payment 'none';picture-in-picture 'none'; speaker 'none';sync-xhr 'none';usb 'none';vr 'none'"
|
||||||
Referrer-Policy "no-referrer"
|
Referrer-Policy "no-referrer"
|
||||||
|
Cache-Control 'max-age=604800,stale-while-revalidate=10'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -31,9 +32,6 @@ https://msfjarvis.website {
|
||||||
import base_config
|
import base_config
|
||||||
import compression_config
|
import compression_config
|
||||||
root /var/www/msfjarvis.website/
|
root /var/www/msfjarvis.website/
|
||||||
header / {
|
|
||||||
Cache-Control "no-cache"
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
https://bin.msfjarvis.website {
|
https://bin.msfjarvis.website {
|
||||||
|
@ -95,7 +93,4 @@ https://staging.msfjarvis.website {
|
||||||
import base_config
|
import base_config
|
||||||
import compression_config
|
import compression_config
|
||||||
root /var/www/msfjarvis.website.staging/
|
root /var/www/msfjarvis.website.staging/
|
||||||
header / {
|
|
||||||
Cache-Control "no-cache"
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue