[wp-trac] [WordPress Trac] #52636: Add proper Cache-Control header to /wp-json REST endpoints
WordPress Trac
noreply at wordpress.org
Wed Feb 24 10:07:03 UTC 2021
#52636: Add proper Cache-Control header to /wp-json REST endpoints
-------------------------+------------------------------
Reporter: isaumya | Owner: (none)
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: REST API | Version:
Severity: major | Resolution:
Keywords: needs-patch | Focuses: rest-api
-------------------------+------------------------------
Comment (by thegulshankumar):
+1
Some plugin uses the end point for the logged out users.
https://i.imgur.com/Li98eJJ.png
https://i.imgur.com/Bov6cOF.png
Therefore, Rest API end point should have a **Cache-Control** header that
prevents caching in the Browser and intermediary reverse-proxy CDN.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/52636#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list