Opened 9 years ago
Closed 5 years ago
#34775 closed enhancement (wontfix)
Comments update last-modified
Reported by: | inetbizo | Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | normal | Version: | |
Component: | Comments | Keywords: | 2nd-opinion |
Focuses: | Cc: |
Description
When a comment record is added to a page or post id, update the last-modified timestamp as this creates additional content on the page.
Change History (9)
#3
@
9 years ago
@rachelbaker which timestamp sql record is used for the HTTP packet header last-modified if sent at all? If it's the post then use that one if it reads the last approved comment date then fine. Search engines ignore
#4
@
9 years ago
- Keywords reporter-feedback removed
- Type changed from feature request to enhancement
When a comment record is added to a page or post id, update the last-modified timestamp as this creates additional content on the page.
That's how it currently works since [4483], but the Last-Modified
header is only sent for feeds by default:
tags/4.4/src/wp-includes/class-wp.php#L392.
#5
@
9 years ago
@SergeyBiryukov [RFC2616]http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html That last-modified HTTPD header packet.
This ticket was mentioned in Slack in #core-comments by rachelbaker. View the logs.
9 years ago
#7
@
9 years ago
Being as there is currently no last modified date on comments(See #36564 for that suggestion), perhaps updating a comment attached to a post should update the last modified field for the post itself, as the comment is part of the post.
#8
@
8 years ago
Related: #24266.
[…] as this creates additional content on the page.
In a REST API context for example, this wouldn't be 100% true anymore, so I don't think updating the post's modified date is the best idea.
And since Last-Modified
is only served for feeds, so I'm not sure this behaviour should change here.
#9
@
5 years ago
- Milestone Awaiting Review deleted
- Resolution set to wontfix
- Status changed from new to closed
I think @swissspidy is right on both accounts, adding a comment does not change the post itself, so it is not modified. While I understand the intent but it sounds like a SEO update which a plugin can handle just as well.
I will close this ticket but feel free to reopen with clarifications.
@inetbizo Can you clarify which
last-modified
timestamp you are suggesting should change (the Post or the Comment)?