nginx simple caching solutions

Ian Evans ianevans at digitalhit.com
Wed Aug 1 15:43:11 UTC 2012


On 01/08/2012 11:27 AM, António P. P. Almeida wrote:
> Use cURL. Add a header with the cache status:
>
> ## Add a cache miss/hit status header.
> add_header X-My-Cache $upstream_cache_status;
>
> to your cache config. Check for this header when doing requests with cURL.

Thanks. I forgot I was sending out a cookie on the test page. Got rid of 
that and the page was cached.



More information about the nginx mailing list