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?
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.
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.