[wp-trac] [WordPress Trac] #52636: Add proper Cache-Control header to /wp-json REST endpoints

WordPress Trac noreply at wordpress.org
Wed Feb 24 06:39:24 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 TimothyBlynJacobs):

 Hi @isaumya, thanks for the ticket and welcome back to trac!

 Why shouldn't `wp-json` be cached? The REST API server sends no-cache
 headers if the user is logged in.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/52636#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list