Skip to content

Instantly share code, notes, and snippets.

@monochromer
Last active October 11, 2023 06:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save monochromer/f95f254a2ce9a4f9dc99a1f4eec21853 to your computer and use it in GitHub Desktop.
Save monochromer/f95f254a2ce9a4f9dc99a1f4eec21853 to your computer and use it in GitHub Desktop.
Стратегия кэширования от Adobe в Nginx
* 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