-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Allow Nonce caching #793
Comments
So are there any concrete steps I can follow to try to test this? And when would this be implemented in a Beta release or a stable version. |
@Highacid Yes, you can implement this by following the steps outlined in What are WordPress nonces and why are they not cache-compatible? in the section for Allowing Nonce Caching and Logged-In Users (safer), and by setting Comet Cache → Plugin Options → Directory / Expiration Time to 12 hours. |
…n Users config panel. See: wpsharks/comet-cache#793
Next Release Changelog:
|
When will this be available to public? |
@Highacid We should have a Release Candidate available this weekend that will include these changes. Our target date for a General Availability release is Friday, November 18th. If you're interested in testing a beta release of Comet Cache before the next version comes out, please sign-up to be a beta tester here or see Comet Cache → Plugin Updater → Beta Testers to automatically receive Release Candidate updates. |
@raamdev Thanks, I am already subscribed. |
Confirmed WorkingComet Cache now intelligently caches pages/posts with Nonce Values present. |
Comet Cache v161119 has been released and includes changes from this GitHub Issue. See the v161119 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 (#793). |
As of v160706, Comet Cache does not cache Nonce values (see What are WordPress nonces and why are they not cache-compatible?). However, after further discussion it was decided that Nonces could be cached safely, with a few caveats (see Caching Nonce values safely below). The decision to put in the work necessary to make caching Nonces possible came after lots of feedback from users frustrated that Comet Cache was not caching their pages due to a plugin/theme adding Nonce values to every page.
To improve the way Comet Cache handles WordPress Nonces, we need to do the following:
Caching Nonce values safely
From what I've gathered, the only real way to cache Nonce values safely is to do the following:
.htaccess
rules are not possible) and sites where we may be unable to write an.htaccess
file to protect files in the cache from being publicly accessible. We may not need to worry about this; see more on this below.Points 1 and 3 we can control: We can only Nonce caching only for Logged-In Users and we can set an expiration date on cache files that contain Nonce values to 12 hours. Point 2 is somewhat out of our control, however that may not be a problem.
@jaswsinc writes...
The WordPress Codex says to "always assume Nonces can be compromised" and that "Nonces should never be relied on for authentication or authorization, access control." If we go by that, then we don't need to worry about making sure that cache files are not publicly accessible just because they may contain a Nonce value. (I agree, however, that we should still try to make sure user-specific cache files are not publicly accessible, as those will probably contain user-specific information that a site owner would not want to expose.)
The text was updated successfully, but these errors were encountered: