I'm currently need to avoid caching ajax requests, but to keep caching the rest pages.
I know which directives disallow caching:
proxy_no_cache or proxy_cache_bypass
But how to add a proper statement. Via if block?
Statement should be like this?
$http_x_requested_with=XMLHttpRequest
As i understand, proxy directives is not allowed to user in IF context.
Thanks ;)
Edited 1 time(s). Last edit at 05/21/2011 04:00PM by somebi.