Opened 11 years ago
Closed 10 years ago
#35266 closed defect (bug) (duplicate)
Set appropriate Cache-Control and/or Pragma headers on the front-end
| Reported by: | tomdxw | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | Comments | Version: | 4.4 |
| Severity: | normal | Keywords: | needs-patch good-first-bug |
| Cc: | Focuses: |
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.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
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,