FastCGI with Caching & JSONP -> Caching problem

Maxim Dounin mdounin at
Wed Jun 9 01:30:56 MSD 2010


On Tue, Jun 08, 2010 at 05:13:04PM -0400, mcmaxx wrote:

> 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.

Using ssi filter or sub filter for jsonp substitution and 
fastcgi_cache_key without jsonp= argument should do the trick.

Maxim Dounin

More information about the nginx mailing list