Welcome! Log In Create A New Profile

Advanced

Nginx reverse proxy cache MISS

Posted by kallenp 
Nginx reverse proxy cache MISS
September 27, 2019 06:16PM
Hello.
Please, can I ask why Nginx is not caching this content ?
May be problem this "?width=" ? If yes, is there any way howto solve it and make it work ?

...
location /Images/ {
proxy_pass https://cdn.kallen.cz;
include /etc/nginx/proxy_params;
include /etc/nginx/proxy_cache_params.conf;
proxy_cache cdn;
}
...

Log output

85.13.68.14 - MISS [27/Sep/2019:23:59:49 +0200] "GET /Images/Product/50913065/?width=180&ts=699192833229900000 HTTP/2.0" 200 9599 "https://www.kallen.cz/pocitace/?pageSize=300" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_6) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/13.0.1 Safari/605.1.15"
85.13.68.14 - MISS [27/Sep/2019:23:59:49 +0200] "GET /Images/Product/46326525/?width=180&ts=636891807200200000 HTTP/2.0" 200 32500 "https://www.kallen.cz/pocitace/?pageSize=300" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_6) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/13.0.1 Safari/605.1.15"
85.13.68.14 - MISS [27/Sep/2019:23:59:49 +0200] "GET /Images/Product/55333410/?width=180&ts=636988148159500000 HTTP/2.0" 200 23607 "https://www.kallen.cz/pocitace/?pageSize=300" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_6) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/13.0.1 Safari/605.1.15"

Thanks for help.
Petr
Re: Nginx reverse proxy cache MISS
October 14, 2019 12:40AM
Problem solved with this headers modification.

proxy_ignore_headers Vary;
proxy_hide_header Vary;
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 91
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