Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Проблемы с кэшированием статических файлов #371

Open
monochromer opened this issue Sep 5, 2024 · 0 comments

Comments

@monochromer
Copy link
Member

monochromer commented Sep 5, 2024

После деплоя коммита с тёмной темой Chrome не загружал новый файл images/sprite.svg. Даже с опцией disable cache в devtools. Из-за того, что отказались от cache-busting'а в названиях файлов, возможно, нужно ослабить настройки кэширования для веб-сервера, например, указать так:

cache-control: public, max-age=0, must-revalidate

Это должно заставить браузер каждый раз опрашивать сервер об изменении файлов.

Хотя связка etag и last-modified должна делать тоже самое.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant