Exclude Redirection Plugin From Nginx Caching
-
A lot of people are having problems redirecting an image to a post. I found a temporary solution (especially in my case). But I need a little help to perfect it.
I just remove jpg/png/jpeg from this config file :
# set long EXPIRES header on static assets location ~* \.(?:jpg|jpeg|gif|bmp|ico|png|css|js|swf)$ { expires 30d; access_log off; } }
And clear cache+restart system to make it work. After that, image redirection work perfectly.
But here comes a new problem, the server request will increase significantly because there is no cache. This is a bad thing.
I’m curious. Is there some kind of script/regext to exclude the redirection plugin from the nginx caching?
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘Exclude Redirection Plugin From Nginx Caching’ is closed to new replies.