Last active
October 11, 2023 06:36
-
-
Save monochromer/f95f254a2ce9a4f9dc99a1f4eec21853 to your computer and use it in GitHub Desktop.
Стратегия кэширования от Adobe в Nginx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
* https://medium.com/adobetech/an-http-caching-strategy-for-static-assets-configuring-the-server-1192452ce06a | |
server { | |
* style.cache-a1b2c3d4e5.css | |
location ~ \.cache-[a-z0-9]+\. { | |
etag off; | |
add_header Cache-Control "public,max-age=31536000,immutable"; | |
} | |
* index.html | |
location ~ .+\..+ { | |
add_header Cache-Control "no-cache"; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment