Proxy Cache - Check if file has been cached
eagle sbc
sbc19861004 at gmail.com
Fri Dec 31 09:00:53 MSK 2010
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 at 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 at nginx.org
> http://nginx.org/mailman/listinfo/nginx
>
--
自由是我生命之基石,尊重是我行为之准绳
也许我以千百种方式生活在这世上,但我坚守我人生之信仰
所以,我的朋友
请平视的看着我,带着你的微笑
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://nginx.org/pipermail/nginx/attachments/20101231/f2274be6/attachment.html>
More information about the nginx
mailing list