Hi,
I have a site with many POST requests.Each visitor is generating one POST requests per second to get status of few things.
With status Im returning current datetime.
Im reading about different options for caching and made few changes:
fastcgi_cache microcache;
fastcgi_cache_methods POST;
fastcgi_cache_bypass $no_cache;
fastcgi_no_cache $no_cache;
#fastcgi_cache_key $scheme$host$request_method$request_uri;
fastcgi_cache_key $server_name|$request_uri;
fastcgi_cache_valid 200 302 1s;
fastcgi_cache_valid 301 1s;
fastcgi_cache_valid any 1s;
fastcgi_max_temp_file_size 1M;
#fastcgi_cache_use_stale updating;
#fastcgi_cache_use_stale updating error timeout invalid_header http_500;
fastcgi_cache_use_stale error;
conf I pasted is in location /status.php
However in firebug I see each second new request - but timer has 1 second delay.
I see for example:
09.03.2013 03:34:00
09.03.2013 03:34:00
09.03.2013 03:34:01
09.03.2013 03:34:01
09.03.2013 03:34:02
09.03.2013 03:34:02
and so on. While without cache I saw each second in response.
Do you have any hints? :)