Static CDN Filters remain enabled for Logged-In Users even when Logged-In User caching is disabled #486
Comments
Instead of elimination, I would actually prefer at least an opt-in to this behavior. |
@lkraav Thanks for the feedback! That's an even better idea. :-) |
Yes. The reasoning is that even when in development or the admin is working their site, there's plenty of motivation to still load a bunch of assets over CDN. |
I also agree with ikraav. I think its better to give an option to the user whether or not they want this to happen. If they don't then cdn won't show for logged in users or else it will. |
@isaumya Thanks for the feedback. :-) @jaswsinc I added a list of next steps ↑. Can you review that when you get a chance and update the list if necessary? |
@raamdev writes...
I can certainly see where this particular scenario might lead to confusion. However, at the same time I don't see how an option for this would be truly useful. If a CDN is configured, it is always serving "static" resources. So it doesn't matter if it's a logged-in user or not. If you have a CDN, you would always want static resources served from the CDN. Right? Or am I wrong? I can see where providing an option might help to avoid confusion though. No argument. I just can't see anyone actually turning it off for any valid reason. |
Next actions look great to me. |
@jaswsinc No, especially not when you're trying to verify that ZenCache is working properly, or when a static resource (that is hosted on the CDN) appears to be loading outdated content and you're trying to figure out if it's an issue with the CDN or an issue with your server not having the updated copy. For my own personal (single-user) sites, when I login to the WordPress Dashboard, I like to know that nothing on my site is being cached in any way, because that gives me a sense of security knowing that what I'm seeing is exactly what's on my server (so long as I've ensured my browser isn't caching anything). That's why when I inspected the source code and noticed that my static resources were being loaded from the CDN, that caught me by surprise, as I intentionally left Logged-In User Caching disabled because I didn't want ZenCache touching anything when I was logged in and browsing the site. |
Roger that. I can understand that. Thanks for explaining. |
Next Actions (Step 1 of 2)
|
Next Actions (Step 2 of 2 — On Deck)
Note: The above instructions for Step 2 are rather vague. If you're able, attempt step 2 right away. Otherwise, once step 1 is complete hit me on Slack for a more complete set of Step 2 instructions. |
Assigning this to @kristineds :-) |
Next Pro Release Changelog:
|
ZenCache Pro v151220 has been released and includes changes worked on as part of this GitHub Issue. See the release announcement for further details. This issue will now be locked to further updates. If you have something to add related to this GitHub Issue, please open a new GitHub Issue and reference this one (#486). |
Steps to Reproduce This
Expected Behavior
Since Logged-In User caching is disabled, I would expect all ZenCache features (including Static CDN Filters) to not apply when I visit the site as a logged-in user.
Observed Behavior
Upon inspecting the page source (View Source), I see that the Static CDN Filters are being applied and static resource URLs are being rewritten, despite my visiting the site as a logged-in user.
Update (converted from bug to enhancement)
As per the comments below, I've converted this GitHub Issue to an
enhancement
instead of abug
. While the current behavior is unexpected, it should still be possible to have Static CDN Filters enabled for Logged-In users when caching for Logged-In users is disabled.Next Steps
No, disabled (default)
andYes, enabled
.Related: #488
The text was updated successfully, but these errors were encountered: