Invision Community 4: SEO, prepare for v5 and dormant account notifications Matt November 11, 2024Nov 11
Posted August 3, 20222 yr I want to serve cached pages for guests directly from Cloudfront cache. No origin request. On pages requests IPS sends these headers (using Redis as cache method and 1 hour caching for guests on AdminCP): cache-control: no-cache="Set-Cookie", max-age=3600, public, s-maxage=3600, stale-while-revalidate, stale-if-error set-cookie: IPSSessionFront=75kv76vm8so67kh861iqhu7jky; path=/; secure; HttpOnly To cache pages on Cloudfront, these headers should not be sent: no-cache="Set-Cookie" and set-cookie: IPSSessionFront=75kv76vm8so67kh861iqhu7jky; path=/; secure; HttpOnly. I don't care about users online counter and don't use any guest posting feature. Guests can only read content. There is no interaction for guests. For them, serving "static pages" from the CDN is fine for some minutes, what would be much more faster and less resource intensive. Is there a constants.php setting to remove the set-cookie (IPSSessionFront) for guests?
October 5, 20222 yr Author Caching headers was not the issue. I found out that my domain was pointing to the ELB instead of Cloudfront.