Martin_Sauer
Regular Pleskian
In all due respect, what does Plesk dev team try to achieve with this snippet?
Alot of plugins set cookies eg. with Wordpress and they have nothing to do with logged in users. Also Google Analytics sets cookies,...
So basically above snippet means: if there is a cookie, don't cache? Seriously? Either I simply don't understand it or someone was ... while adding that snippet? It bypasses the cache and drastically increases load time for nothing or just because of one simple reason: because... because.
Code:
set $no_cache "";
set $cache_cookie $http_cookie;
if ($cache_cookie !~ "^\s*$") {
set $no_cache 1;
}
Alot of plugins set cookies eg. with Wordpress and they have nothing to do with logged in users. Also Google Analytics sets cookies,...
So basically above snippet means: if there is a cookie, don't cache? Seriously? Either I simply don't understand it or someone was ... while adding that snippet? It bypasses the cache and drastically increases load time for nothing or just because of one simple reason: because... because.