Welcome! Log In Create A New Profile

Advanced

Re: Debugging FastCGI caching

Francis Daly
January 27, 2013 07:34AM
On Sun, Jan 27, 2013 at 07:12:59AM -0500, Daniel15 wrote:

Hi there,

> I'm trying to use Nginx FastCGI caching to cache my site's home page and
> blog home page. However, caching doesn't seem to be working on these pages,
> and $upstream_cache_status always seems to be "MISS".
>
> Site URL: http://dan.cx/

$ curl -i -I http://dan.cx/
HTTP/1.1 200 OK
....
Cache-Control: private
....

I don't see anything in your config which adds that header, so presumably
it is coming from upstream.

See http://nginx.org/r/fastcgi_cache_valid and
http://nginx.org/r/fastcgi_ignore_headers.

> What is the best way to debug this issue?

Examine the traffic between each client/server pair (in this case nginx
and the fasctcgi server). Then protocol-specific knowledge might reveal
the problem.

f
--
Francis Daly francis@daoine.org

_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

Debugging FastCGI caching

Daniel15 January 27, 2013 07:12AM

Re: Debugging FastCGI caching

Francis Daly January 27, 2013 07:34AM

Re: Debugging FastCGI caching

Daniel15 January 28, 2013 01:28AM

Re: Debugging FastCGI caching

Maxim Dounin January 28, 2013 03:52AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

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