Skip to content

Don't register assets for anonymous users #15

Answered by aaronbushnell
Mosnar asked this question in Q&A
Discussion options

You must be logged in to vote

Thanks for the feedback, @Mosnar! Unfortunately, the only way to make Palette compatible on statically cached content is to use JS to make a call to Craft to see if you're authenticated. Otherwise, an authenticated user could hit the site, generate a static cache, and then an unauthenticated user would get that same experience.

We try to keep the initial JS payload lean and mean (around 500 bytes) to ensure it doesn't present any performance issues.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by aaronbushnell
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants