Welcome! Log In Create A New Profile

Advanced

proxy caching extensions

Posted by LookAUnicorn 
proxy caching extensions
June 22, 2011 07:39PM
hello,

how can i see/set what extensions proxy caching caches?

it seems to cache files like photos or css but not .php.



Edited 1 time(s). Last edit at 06/22/2011 07:41PM by LookAUnicorn.
Re: proxy caching extensions
June 22, 2011 07:42PM
Nginx does not cache anything by default. You browser does, though.
Re: proxy caching extensions
June 22, 2011 07:48PM
no, i have set:

========================================
proxy_cache_path /tmp levels=1:2:1 keys_zone=onea:1M;
proxy_buffering on;
proxy_buffer_size 4k;
proxy_buffers 100 8k;
proxy_connect_timeout 60;
proxy_send_timeout 60;
proxy_read_timeout 60;

proxy_cache onea;
# proxy_cache_key $request_uri;
proxy_cache_valid 200 301 302 20m;
proxy_cache_valid 404 1m;
proxy_cache_valid any 15m;
proxy_cache_use_stale error timeout invalid_header updating;
}

========================================

to a remote server and it actually caches.

but it don't cache .php files. how can i set the extensions it will cache?
Re: proxy caching extensions
June 22, 2011 08:33PM
actually i run phpbb and there's a file like:
./style.php?id=13&lang=en&sid=6c362e8494728dd56d5d93fcdaf73824

that the sid changes all the time.

so when a file not found, it re-gets the .php from the server.

but how can i disable it?
Sorry, only registered users may post in this forum.

Click here to login

Online Users

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