Page MenuHomePhabricator

RESTBase page summary endpoint includes a body in 304 response
Open, Needs TriagePublic

Description

Revalidation requests to the RESTBase page summary endpoint have a body. AFAIK an HTTP 304 response doesn't require a body.

When dwelling on the same link multiple times I see:

  • An HTTP 200 response for the first request, which contains the preview.
  • An HTTP 304 response for the second...Nth requests, which also contain the preview.

e.g. (with cookies and the x-analytics headers stripped) {P5549}

Notes

Event Timeline

Hm.. RESTBase never actually sends 304, so it's either Varnish or potentially the browser. We allow 5 minutes client-side caching, maybe the browser returns this?

RESTBase will not send 304s?

RESTBase itself is not sending 304. 304 here is sent by Varnish because you've got an if-none-match header in the second request.

@Pchelolo: Who's the best person to ask about the Varnish configuration for RESTBase?

Who's the best person to ask about the Varnish configuration for RESTBase?

@BBlack