Opened 9 years ago
Closed 9 years ago
#35266 closed defect (bug) (duplicate)
Set appropriate Cache-Control and/or Pragma headers on the front-end
Reported by: |
|
Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | normal | Version: | 4.4 |
Component: | Comments | Keywords: | needs-patch good-first-bug |
Focuses: | Cc: |
Description
When signed-out and viewing a post with comments enabled, WordPress pre-fills form values based on comment_author_* and comment_author_email_* cookies. As these pages are being generated on a per-user basis, shouldn't they also send Cache-Control headers to prevent caches like varnish from caching these pages and subsequently sending the contents of these pages to the wrong users?
Note: See
TracTickets for help on using
tickets.
This seems like a sane improvement.
If the output of a page is determined by a cookie, it definitely should have some kind of cache-control specified IMHO,