]> git.mxchange.org Git - friendica.git/commit
Add Vary header in case of content negotiation
authorGidi Kroon <Gidi@gidikroon.eu>
Sun, 25 Jun 2023 01:22:41 +0000 (03:22 +0200)
committerGidi Kroon <Gidi@gidikroon.eu>
Sun, 25 Jun 2023 01:22:41 +0000 (03:22 +0200)
commit6a5266c6b8a2a5324fe3f1543ec63230e4d1f16d
treeacd8d6c3e2c1e6eda1e3046f646902a902099033
parentff1409e62653a3924356c28a9d384a46d9a150c3
Add Vary header in case of content negotiation

Sometimes we return different content depending on whether JSON, XML or
HTML was requested in the Accept request header. The Vary response
header should list that header in these cases, to allow caching
frameworks to determine what to cache.
src/Module/ActivityPub/Objects.php
src/Module/Friendica.php
src/Module/Item/Display.php
src/Module/Profile/Profile.php
src/Module/Xrd.php