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
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
the Hit Percentage. While I think you can also use it to check whether
file is cached.
Add it to the log_format in you configure file, access every file you
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.