Welcome! Log In Create A New Profile

Advanced

Re: curl -I says X-Cache-Status: MISS

Yuriy Medvedev
September 06, 2016 03:00AM
Miss status, it's file should be caching in next request. It's normal for file not in cache.

Отправлено с моего ASUS

-------- Исходное сообщение --------
Отправитель:Brent Clark <brentgclarklist@gmail.com>
Отправленные:Tue, 06 Sep 2016 09:46:25 +0300
Получатель:nginx@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@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@nginx.org
>http://mailman.nginx.org/mailman/listinfo/nginx
_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

curl -I says X-Cache-Status: MISS

Brent Clark September 06, 2016 02:48AM

Re: curl -I says X-Cache-Status: MISS

Yuriy Medvedev September 06, 2016 03:00AM

Re: curl -I says X-Cache-Status: MISS

itpp2012 September 06, 2016 03:46AM

Re: curl -I says X-Cache-Status: MISS

Brent Clark September 06, 2016 04:08AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 259
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 500 on July 15, 2024
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready