Welcome! Log In Create A New Profile

Advanced

FastCGI with Caching & JSONP -> Caching problem

June 08, 2010 05:13PM
Hello,

We're currently running a server on nginx and fastCGI with caching enabled.


The problem is, the javascript requesting the .php files from nginx w/ fastCGI needs to used JSONP since it's cross-site.

We're noticing that since the /?jsonp=#### is randomized every call our fastCGI is not properly caching the request.

Can you please help out and direct me into perhaps tellings nginx to ignore any values set by the ?jsonp?

We use REST architecture so the ?jsonp= is the only GET variable we deal with.

Here is our nginx - caching setup
[code]
#fastcgi caching
fastcgi_cache_path /var/cache/nginx levels=1:2
keys_zone=ABC:10m
inactive=5m ;
[/code]


[code]
fastcgi_cache TWEET;
fastcgi_cache_valid 200 302 1m;
fastcgi_cache_valid 301 1m;
fastcgi_cache_valid any 1m;
fastcgi_cache_min_uses 1;
fastcgi_cache_use_stale error timeout invalid_header http_500;
fastcgi_cache_key 127.0.0.1:9000$request_uri;
[/code]

Much appreciated!
Subject Author Posted

FastCGI with Caching & JSONP -> Caching problem

mcmaxx June 08, 2010 05:13PM

Re: FastCGI with Caching & JSONP -> Caching problem

mcmaxx June 08, 2010 05:16PM

Re: FastCGI with Caching & JSONP -> Caching problem

Maxim Dounin June 08, 2010 05:36PM

Re: FastCGI with Caching & JSONP -> Caching problem

mcmaxx June 08, 2010 05:51PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 84
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready