Still having problems with ActivityPub
-
Recently I’ve been getting an increased number of complaints from people seeing ActivityPub content. LS Cache stores ActivityPub JSON in the cache. The JSON comes from the same URL, but the ActivityPub request has an
Accept: application/activity+jsonheader.I have this in my .htaccess file:
<IfModule LiteSpeed>
RewriteEngine On
RewriteCond %{HTTP:Accept} application
RewriteRule ^ - [E=Cache-Control:vary=%{ENV:LSCACHE_VARY_VALUE}+isjson]
</IfModule>I have also enabled the Vary header setting in ActivityPub.
Despite these efforts, LiteSpeed Cache is regularly caching ActivityPub content in the cache and showing it to regular users whose requests don’t have the
Accept: application/activity+jsonheader.What else I could do to stop LiteSpeed Cache caching ActivityPub content?
(This is the same issue as here, and still unsolved.)
You must be logged in to reply to this topic.