Welcome! Log In Create A New Profile

Advanced

Re: proxy_cache not writing to proxy_cache_path

Maxim Dounin
November 11, 2010 06:10PM
Hello!

On Thu, Nov 11, 2010 at 04:49:52PM -0500, gms8994 wrote:

> I've got a config file like:
>
> http {
> proxy_cache_path /var/www/nginx/cache levels=1:2
> keys_zone=tmpcache:100m;
>
> server {
> location ~ \.js$ {
> proxy_cache tmpcache;
> proxy_cache_key $uri$is_args$args;
> proxy_pass http://global;
> }
> }
> }
>
> However, I'm not seeing any data stored in the tmpcache. No folders
> created, no files. What am I missing?

Without proxy_cache_valid nginx will only cache responses which
explicitly indicate they may be cached (either with Expires header
in future or with Cache-Control: max-age=).

See here:

http://wiki.nginx.org/HttpProxyModule#proxy_cache_valid

Maxim Dounin

_______________________________________________
nginx mailing list
nginx@nginx.org
http://nginx.org/mailman/listinfo/nginx
Subject Author Posted

proxy_cache not writing to proxy_cache_path

gms8994 November 11, 2010 04:49PM

Re: proxy_cache not writing to proxy_cache_path

Maxim Dounin November 11, 2010 06:10PM

Re: proxy_cache not writing to proxy_cache_path

gms8994 November 12, 2010 09:54AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 233
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