- Issue created by @shani maurya
- 🇦🇺Australia larowlan 🇦🇺🏝.au GMT+10
This powers the multiple entity support
We could theoretically remove it if you opted out of multiple entity support
However is caching preview links a good idea? You wouldn't want to cache drafts viewed by an admin - 🇮🇳India shani maurya Mumbai
@larowlan We use preview links only for Node entities. When we open the preview link of any node in any browser and visit the other page of the site, the site is very slow which is causing more issues for us.
Session cookies get stored for preview links which causes the varnish miss cache.
We are okay to cache the preview links page. Can you help me with how I can disable the session cookies?
thank you!
- 🇦🇺Australia larowlan 🇦🇺🏝.au GMT+10
I mean it's hacky, but you could try putting this in the footer of your page in the meantime.
<img src="/preview-link/session-tokens/remove" height="1" width="1"/>
Preview link should still work if you're not making use of the 'multiple entities' functionality.
We need to fix it properly by preventing creating a session if 'multiple entities' is not enabled.