Welcome! Log In Create A New Profile


default proxy_cache_key breaks SSI

September 09, 2010 12:30PM
The default proxy_cache_key is "$scheme$proxy_host$request_uri;" This means that when a non-cacheable page includes a cacheable part via SSI, the part is stored using the key of the main page, and the next person to view the main page will have only that part displayed to them. Replacing $request_uri with just $uri fixed this for me -- now I can have a dynamic layout with several static chunks inside. Perhaps it would be worth updating the default, as I see no downside to using $uri, and it could save others from the same confusion?
Subject Author Posted

default proxy_cache_key breaks SSI

Shish September 09, 2010 12:30PM

Sorry, only registered users may post in this forum.

Click here to login

Online Users

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