Hot answers tagged

2

The keys_zone parameter of the fastcgi_cache_path directive specifies a memory zone to store cache keys. Its size indirectly limits number of items the cache can store (1 megabyte ~ 8k items), but not on-disk size of the cache. To limit on-disk size use the max_size parameter: fastcgi_cache_path ... max_size=2048m; See fastcgi_cache_path documentation ...


1

You CURL'd the wrong URL, add the www. When you do that the cache works and you can see it in the headers. Add these lines to your file to change your caching slightly. # Determines in which cases a stale cached response can be used when an error occurs during # communication with the FastCGI server fastcgi_cache_use_stale error timeout invalid_header ...



Only top voted, non community-wiki answers of a minimum length are eligible