Welcome! Log In Create A New Profile

Advanced

Re: Proxy Cache - Check if file has been cached

eagle sbc
December 31, 2010 01:42AM
I use this variable $upstream_cache_status added to my access log to check
the Hit Percentage. While I think you can also use it to check whether the
file is cached.
Add it to the log_format in you configure file, access every file you want
to check, and the cache status will be shown in the access log.

On Thu, Dec 30, 2010 at 10:57 PM, digger18 <nginx-forum@nginx.us> wrote:

> Hi,
> I have implemented nginx with proxy cache successfully, however, I need
> to have the ability to check if a certain file is already cached or
> not.
> Is there a way to get a list of cached files?
> Maybe another way will be to send a HEAD request which contains the file
> URI to the proxy cache server to check if a file is already in cache?
>
> Are these methods possible?
>
> Posted at Nginx Forum:
> http://forum.nginx.org/read.php?2,162263,162263#msg-162263
>
>
> _______________________________________________
> nginx mailing list
> nginx@nginx.org
> http://nginx.org/mailman/listinfo/nginx
>



--
自由是我生命之基石,尊重是我行为之准绳
也许我以千百种方式生活在这世上,但我坚守我人生之信仰
所以,我的朋友
请平视的看着我,带着你的微笑
_______________________________________________
nginx mailing list
nginx@nginx.org
http://nginx.org/mailman/listinfo/nginx
Subject Author Posted

Proxy Cache - Check if file has been cached

digger18 December 30, 2010 09:57AM

Re: Proxy Cache - Check if file has been cached

Simon Leins December 30, 2010 10:56AM

Re: Proxy Cache - Check if file has been cached

eagle sbc December 31, 2010 01:42AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 290
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready