February 18, 2011 12:10AM
I have registered with Uptime Robot. You can have it monitor a URL. It does this by sending a HEAD request every 5 to 10 minutes and checking for an OK response. This request triggers the fastcgi cache with an empty content. If I understand the wiki correctly I can't not cache HEAD requests (http://wiki.nginx.org/HttpFcgiModule#fastcgi_cache_methods).

The only (dubious) fix this I can see at the moment is to add an IP exception to the nginx config. However that effectively leaves the site open to abuse by someone being malicious.

Is there a way I can just cache GET requests? Or requests with body content size > 0? Or is there a better way?
Subject Author Posted

HEAD request breaks fastxgi_cache

graq February 18, 2011 12:10AM

Re: HEAD request breaks fastxgi_cache

kaspars February 18, 2011 02:56AM

Re: HEAD request breaks fastxgi_cache

graq February 18, 2011 04:21AM

Re: HEAD request breaks fastxgi_cache

kaspars February 18, 2011 04:46AM

Re: HEAD request breaks fastxgi_cache

graq February 18, 2011 07:09AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

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