curl -I says X-Cache-Status: MISS
Brent Clark
brentgclarklist at gmail.com
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
KEY:
httpGETdomain.com/wp-content/uploads/sites/18/2016/09/B15J5GB3364-168x112.jpg?5152e3
So here now is my question, if I do :
bclark at bclark:~$ curl -I
http://domain/wp-content/uploads/sites/18/2016/09/B15J5GB3364-168x112.jpg?5152e3
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/0.9.4.1
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
Brent
More information about the nginx
mailing list