Welcome! Log In Create A New Profile

Advanced

Re: proxy_cache is not working

May 17, 2016 09:10AM
It was already set but apparently wasn't being used.

location /static/ {
try_files $uri @apache-cache;
proxy_cache_valid 5m;
}

location @apache-cache {
...
proxy_ignore_headers Set-Cookie Expires Cache-Control;
proxy_hide_header Set-Cookie;

internal;
}

Moved this directive to second location and now it's all fine.

Thanks!
Subject Author Posted

proxy_cache is not working

reaper May 17, 2016 08:39AM

Re: proxy_cache is not working

Maxim Dounin May 17, 2016 08:50AM

Re: proxy_cache is not working

reaper May 17, 2016 09:10AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 41
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready