curl -I says X-Cache-Status: MISS
Yuriy Medvedev
medvedev.yp at gmail.com
Tue Sep 6 06:58:39 UTC 2016
Miss status, it's file should be caching in next request. It's normal for file not in cache.
Отправлено с моего ASUS
-------- Исходное сообщение --------
Отправитель:Brent Clark <brentgclarklist at gmail.com>
Отправленные:Tue, 06 Sep 2016 09:46:25 +0300
Получатель:nginx at nginx.org
Тема:curl -I says X-Cache-Status: MISS
>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
>
>_______________________________________________
>nginx mailing list
>nginx at nginx.org
>http://mailman.nginx.org/mailman/listinfo/nginx
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.nginx.org/pipermail/nginx/attachments/20160906/a1bf8ab3/attachment.html>
More information about the nginx
mailing list