Forum: NGINX nginx-reverse-proxy-proxy-cache-inside-if-block-possible

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms. (Guest)
on 2013-07-19 03:48
(Received via mailing list)

I  am running a BBS server(nginx).
And now I want to setup a cache server (using nginx)in front of the BBS
server to cache the pic .

The URL for the pic is  something like this:
It is not as usual as something like this ---

Following this page:

The cache config on the cache server is :(nginx version: nginx/1.1.19)

proxy_temp_path   /nginx-cache/tmp 1 2;
proxy_cache_path  /nginx-cache/cache1  levels=1:2 keys_zone=cache1:100m
inactive=1d max_size=15g;

map $arg_mod  $skip_cache {
default 1;
attachment  0;
log_format format1 '$remote_addr - $remote_user [$time_local]  '
'"$request" $status $body_bytes_sent '   '"$http_referer"
"$http_user_agent" $upstream_cache_status';
location  /forum.php  {
        proxy_pass;   # is the real ip of BBS
        proxy_cache cache1;
        proxy_cache_key $host$uri$is_args$args;
proxy_cache_valid      720m;
        expires 3d;
    proxy_cache_bypass     $skip_cache;
         proxy_no_cache         $skip_cache;

When I access
on my IE.

I see the following log on cache server:
client IP - - [18/Jul/2013:14:21:37 +0400]  "GET
HTTP/1.1" 200 4194 ""
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.1; WOW64; Trident/6.0;;
.)" MISS

And at that moment,the pic did not shown on my IE.

My questions are:
What does "MISS" excatly  mean?
Does it mean that cache server does not get the pic from BBS server ?
If so , why?
or are there any other ways to setup nginx cache for my situation?
And hint is appreciated.
Thank you !
mex (Guest)
on 2013-07-19 10:26
(Received via mailing list)
MISS means the ressouce is not found in the cache

btw, do you see any requests getting cahced / your caching-dir is
or do you see 100% MISS?


do you use cache-control-headerrs?

Posted at Nginx Forum:,241023,241024#msg-241024
This topic is locked and can not be replied to.