curl -I says X-Cache-Status: MISS

Brent Clark brentgclarklist at
Tue Sep 6 06:46:25 UTC 2016

Good day Guys

Im trying to get to grips and understand caching.

So I can see nginx caching wonderfully (all in all everything is 
working), but for my own understanding and peeking under the hood.

I just decided to see what inside one of the cache files and one of the 
things that got my attention was

cat /storage/imgcache/2/05/f8484e99c2d4e7659020a0fa96a22052


So here now is my question, if I do :

bclark at bclark:~$ curl -I 
HTTP/1.1 200 OK
Server: nginx
Date: Tue, 06 Sep 2016 06:34:23 GMT
Content-Type: image/jpeg
Content-Length: 9052
Connection: keep-alive
Last-Modified: Mon, 05 Sep 2016 15:22:03 GMT
ETag: "235c-53bc43e026b87"
Cache-Control: max-age=31536000, public
Expires: Wed, 06 Sep 2017 06:34:23 GMT
Vary: User-Agent
Pragma: public
X-Powered-By: W3 Total Cache/
X-Cache-Status: MISS
Accept-Ranges: bytes

See the X-Cache-Status.

Does anyone know why it says MISS?

If I run the same curl command again, it says HIT.

Many thanks


More information about the nginx mailing list