mirror of https://gitlab.com/curben/blog
feat: enable cache
* https://nullsweep.com/http-security-headers-a-complete-guide/ * https://codewithhugo.com/enable-cdn-netlify/
This commit is contained in:
parent
a5878e86f1
commit
b53dda5771
|
@ -6,4 +6,20 @@
|
||||||
Content-Security-Policy: default-src 'self'; child-src 'none'; connect-src 'none'; font-src 'none'; frame-src 'none'; img-src https: 'self'; manifest-src 'none'; media-src 'none'; object-src 'none'; prefetch-src 'none'; script-src https://cdnjs.cloudflare.com 'self'; style-src https://cdnjs.cloudflare.com 'self'; worker-src 'none'; base-uri 'none'; form-action https://duckduckgo.com; frame-ancestors 'none'; block-all-mixed-content
|
Content-Security-Policy: default-src 'self'; child-src 'none'; connect-src 'none'; font-src 'none'; frame-src 'none'; img-src https: 'self'; manifest-src 'none'; media-src 'none'; object-src 'none'; prefetch-src 'none'; script-src https://cdnjs.cloudflare.com 'self'; style-src https://cdnjs.cloudflare.com 'self'; worker-src 'none'; base-uri 'none'; form-action https://duckduckgo.com; frame-ancestors 'none'; block-all-mixed-content
|
||||||
Referrer-Policy: no-referrer
|
Referrer-Policy: no-referrer
|
||||||
Strict-Transport-Security: max-age=31536000
|
Strict-Transport-Security: max-age=31536000
|
||||||
Feature-Policy: accelerometer 'none'; autoplay 'none'; camera 'none'; document.domain 'none'; display-capture 'none'; encrypted-media 'none'; geolocation 'none'; gyroscope 'none'; magnetometer 'none'; microphone 'none'; midi 'none'; payment 'none'; sync-xhr 'none'; usb 'none'
|
Feature-Policy: accelerometer 'none'; autoplay 'none'; camera 'none'; document.domain 'none'; display-capture 'none'; encrypted-media 'none'; geolocation 'none'; gyroscope 'none'; magnetometer 'none'; microphone 'none'; midi 'none'; payment 'none'; sync-xhr 'none'; usb 'none'
|
||||||
|
Expires: 0
|
||||||
|
|
||||||
|
/*.html
|
||||||
|
Cache-Control: max-age=86400, public
|
||||||
|
/*.css
|
||||||
|
Cache-Control: max-age=604800, public
|
||||||
|
/*.js
|
||||||
|
Cache-Control: max-age=604800, public
|
||||||
|
/*.ico
|
||||||
|
Cache-Control: max-age=604800, public
|
||||||
|
/*.png
|
||||||
|
Cache-Control: max-age=604800, public
|
||||||
|
/*.webp
|
||||||
|
Cache-Control: max-age=604800, public
|
||||||
|
/*.jpg
|
||||||
|
Cache-Control: max-age=604800, public
|
||||||
|
|
Loading…
Reference in New Issue