FastCGI cache has stopped working

Maxim Dounin mdounin at
Sun Mar 3 13:05:35 UTC 2013


On Sun, Mar 03, 2013 at 07:45:21AM -0500, Daniel15 wrote:

> Figured it out. 
> The Expires header ("Sun, 3 Mar 2013 13:28:24 GMT") is using a single digit
> for the date. If I change the "3" to "03", Nginx works as expected.  RFC
> 1123 and RFC 822 say that both one- and two-digit numbers are valid, so this
> is a bug in Nginx's caching. I'll report it to the bug tracker.

Nice catch.  It's not a bug in nginx though, as HTTP only allows 
fixed-width subset of RFC1123, see here:

Maxim Dounin

More information about the nginx mailing list