Welcome! Log In Create A New Profile

Advanced

Re: FastCGI cache has stopped working

Maxim Dounin
March 03, 2013 07:58AM
Hello!

On Sun, Mar 03, 2013 at 07:32:05AM -0500, Daniel15 wrote:

> Nginx's FastCGI caching used to work perfectly for me, but recently it
> stopped working and I can't work out why.
>
> This is how the headers look:
> HTTP/1.1 200 OK
> Server: nginx/1.2.7
> Date: Sun, 03 Mar 2013 12:28:24 GMT
> Content-Type: text/html; charset=utf-8
> Content-Length: 10727
> Connection: keep-alive
> X-AspNetMvc-Version: 4.0
> X-AspNet-Version: 4.0.30319
> Expires: Sun, 3 Mar 2013 13:28:24 GMT
> Cache-Control: public, max-age=3600
> Last-Modified: Sun, 3 Mar 2013 12:26:20 GMT
> X-Cache: MISS
>
> It appears that the Last-Modified, Expires and Cache-Control headers are set
> correctly, however the cache status is always "MISS" and the cache directory
> is empty. Any ideas on why this would be happening, and how to debug this?
>
> The site URL is http://dan.cx/, and here is my Nginx configuration for this
> site: https://github.com/Daniel15/Website/blob/master/nginx.conf

Generic debugging hints are here:

http://wiki.nginx.org/Debugging

In ths particular case I would suggest there is another caching
layer, which results in cached "X-Cache: MISS" being returned.
Note that Expires and Last-Modified are the same, and
X-ExecutionTime headers match exactly:

HTTP/1.1 200 OK
Server: nginx/1.2.7
Date: Sun, 03 Mar 2013 12:49:14 GMT
Content-Type: text/html; charset=utf-8
Content-Length: 10727
Connection: close
X-AspNetMvc-Version: 4.0
X-ExecutionTime: 00:00:00.1373919
X-ExecutionTime: 00:00:00.1717868
X-AspNet-Version: 4.0.30319
Expires: Sun, 3 Mar 2013 13:22:27 GMT
Cache-Control: public, max-age=3600
Last-Modified: Sun, 3 Mar 2013 12:22:27 GMT
X-Cache: MISS

HTTP/1.1 200 OK
Server: nginx/1.2.7
Date: Sun, 03 Mar 2013 12:49:31 GMT
Content-Type: text/html; charset=utf-8
Content-Length: 10727
Connection: close
X-AspNetMvc-Version: 4.0
X-ExecutionTime: 00:00:00.1373919
X-ExecutionTime: 00:00:00.1717868
X-AspNet-Version: 4.0.30319
Expires: Sun, 3 Mar 2013 13:22:27 GMT
Cache-Control: public, max-age=3600
Last-Modified: Sun, 3 Mar 2013 12:22:27 GMT
X-Cache: MISS

HTTP/1.1 200 OK
Server: nginx/1.2.7
Date: Sun, 03 Mar 2013 12:50:25 GMT
Content-Type: text/html; charset=utf-8
Content-Length: 10727
Connection: close
X-AspNetMvc-Version: 4.0
X-ExecutionTime: 00:00:00.1373919
X-ExecutionTime: 00:00:00.1717868
X-AspNet-Version: 4.0.30319
Expires: Sun, 3 Mar 2013 13:22:27 GMT
Cache-Control: public, max-age=3600
Last-Modified: Sun, 3 Mar 2013 12:22:27 GMT
X-Cache: MISS

--
Maxim Dounin
http://nginx.org/en/donation.html

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

FastCGI cache has stopped working

Daniel15 March 03, 2013 07:32AM

Re: FastCGI cache has stopped working

Daniel15 March 03, 2013 07:45AM

Re: FastCGI cache has stopped working

Maxim Dounin March 03, 2013 07:58AM

Re: FastCGI cache has stopped working

Daniel15 March 03, 2013 08:02AM

Re: FastCGI cache has stopped working

Maxim Dounin March 03, 2013 08:08AM

Re: FastCGI cache has stopped working

Maxim Dounin March 03, 2013 08:06AM

Re: FastCGI cache has stopped working

Daniel15 March 04, 2013 06:53AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

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