Welcome! Log In Create A New Profile

Advanced

proxy_ignore_headers when not using cache

Jérôme Loyet
June 11, 2009 10:07AM
Hi igor,

how the directive proxy_ignore_headers is used when the cache is not
set for a location ? for exemple:

http {
...
proxy_cache_path /LIBRE/nginx/cache levels=1:2 keys_zone=one:32m
inactive=1d max_size=4g;
proxy_ignore_headers Expires Cache-Control;
server {
...
location / {
proxy_pass http://127.0.0.1:8080
proxy_cache one;
proxy_cache_valid 5m;
}
location /not_cached {
proxy_pass http://127.0.0.1:8080
}
}
}

For every pages (exept the ones catched by the /not_cached location),
pages are cached for 5 minutes whatever the headers Expires and
Cache-Control say.

But for the /not_cached pages, what does the proxy_ignore_headers do ?
As far as I understand it, it should do nothing. Am I right ?

Thx
++ jerome
Subject Author Posted

proxy_ignore_headers when not using cache

Jérôme Loyet June 11, 2009 10:07AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 140
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready