Answer the question
In order to leave comments, you need to log in
How to work with cache in nginx?
Good afternoon. I'm making a website with Flask + Nginx. Nginx is configured to handle static files (images, css, js):
location /static {
# handle static files directly, without forwarding to the application
alias /home/user/www/site.com/app/static;
expires 30d;
}
Answer the question
In order to leave comments, you need to log in
The browser caches.
At the time of development, connect scripts like this
where X is a random variable, usually timestamp
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question