Welcome! Log In Create A New Profile

Advanced

Is there a way to cache only GET Ajax request?

Posted by photographer 
Is there a way to cache only GET Ajax request?
December 02, 2014 10:04AM
Usually I have in nginx config rules which does not allow cache all XMLHttpRequest map $http_x_requested_with $nocache_01 { default 0; XMLHttpRequest 1; }

Is there a way to cache only GET Ajax request?

Br,
Rostyslav
Re: Is there a way to cache only GET Ajax request?
December 02, 2014 02:35PM
Anything in $request you can test for ?

---
nginx for Windows http://nginx-win.ecsds.eu/
Sorry, only registered users may post in this forum.

Click here to login

Online Users

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