Welcome! Log In Create A New Profile

Advanced

Re: proxy_cache is not working

Maxim Dounin
May 17, 2016 08:50AM
Hello!

On Tue, May 17, 2016 at 08:39:00AM -0400, reaper wrote:

> nginx is not caching anything. Every request that's supposed to be cached
> has "http cacheable: 0" in debug log.
>
> Test request is a static page with headers like those
>
> < HTTP/1.1 200 OK
> < Date: Tue, 17 May 2016 12:23:36 GMT
> < Server: Apache/2.2.15 (CentOS)
> < X-Powered-By: PHP/5.5.32
> < Content-Length: 5
> < Connection: close
> < Content-Type: text/html; charset=UTF-8
>
> Can you please suggest anything?

You need to configure proxy_cache_valid for nginx to cache such a
response, see http://nginx.org/r/proxy_cache_valid.

--
Maxim Dounin
http://nginx.org/

_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
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: 180
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