F
F
free_pizza2021-12-01 14:07:25
Nginx
free_pizza, 2021-12-01 14:07:25

Why doesn't nginx cache one file?

The config looks something like this:

add_header Cache-Control "private, no-cache";
...
location ~* \.(?:ico|css|gif|jpe?g|png|svg|js|wasm)(\?[a-zA-Z0-9%\-\._~]+=\d+)?$ {
  add_header Cache-Control "public, max-age=31536000";
        break;
}

All files except *.wasm are cached remarkably.
There are no other directives that would affect them.
61a757458707e335288216.jpeg

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question