Background
I migrate this blog to a performance server recently and proxy the service from another server.
It was testing the theme function, the theme didn't change after refresh no matter what I set.
Then I open the developer tool and found the css file was cached beacuse the request has a Cache-Control header.
It may be added by nginx on default.
Solution
I set the header to no-cache and everything works well
server {
...
...
...
location / {
...
...
...
add_header Cache-Control "no-cache";
...
...
...
}
...
...
...
}
Comments