Skip to content
This repository has been archived by the owner on Jul 31, 2024. It is now read-only.

differentiate non-logged vs logged on users? #102

Open
futtta opened this issue Apr 21, 2019 · 1 comment
Open

differentiate non-logged vs logged on users? #102

futtta opened this issue Apr 21, 2019 · 1 comment
Labels
fridge not now, maybe later

Comments

@futtta
Copy link
Owner

futtta commented Apr 21, 2019

As a user I can configure the plugin so that it will also make specific requests for critical css for logged in pages (and use it).

Criticalcss.com supports the customPageHeaders field as we discussed before, that can be used for this via sending a cookie header. This header that the user would specify to see a logged in version of the page - it would have to only be sent to criticalcss.com for logged in ccss requests - otherwise the logged out versions might stop working, if those pages redirect logged in users elsewhere.

It might also make sense one day, but perhaps not at the same time, to allow two versions of critical css for the same url - one for logged in users, and one for logged out ones.

@futtta
Copy link
Owner Author

futtta commented Apr 21, 2019

@pocketjoso

-> this would require either the user providing the cookie value (most would have no idea) OR for AOCCSS to fetch that cookie itself somehow (i.e. get or create a session for a logged on user and extract the cookie somehow), this will not be simple
-> additionally typically in wordpress different roles (and different users) might see different things, so even between logged in users the CCSS might be different ...

@futtta futtta added the fridge not now, maybe later label Apr 21, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
fridge not now, maybe later
Projects
None yet
Development

No branches or pull requests

1 participant