Feature Requests

Prevent indefinite caching in Solid Security when Cache-Control: max-age=0

S
shane.tiedrainFeature Requests
about 1 year ago

In core/modules/site-scanner/api.php, set_site_transient() currently receives (int) $mapped['max-age']directly. When max-age=0, WordPress interprets this as “no expiration” causing the transient to persist indefinitely.

Proposed fix: Only set the transient if max-age > 0 and no no-store or no-cache directives are present.

Posted on behalf of @slash2 from this thread: https://wordpress.org/support/topic/invalid-json-7/

  1. In Review
  2. Planned
  3. In Progress
  4. Completed
Loading content, please wait...
Loading content, please wait...
Loading content, please wait...
Loading content, please wait...
Loading content, please wait...
Loading content, please wait...
Loading content, please wait...
Loading content, please wait...
Loading content, please wait...
Loading content, please wait...
Loading content, please wait...
Loading content, please wait...