Closed Bug 753485 Opened 12 years ago Closed 12 years ago

kumascript: Use conditional GET in requests for Kuma documents

Categories

(developer.mozilla.org Graveyard :: Editing, defect)

defect
Not set
normal

Tracking

(Not tracked)

VERIFIED FIXED

People

(Reporter: lorchard, Assigned: lorchard)

References

Details

(Whiteboard: u=contributor c=wiki s=2012-06-05 p=2 t=2012-06-05)

After bug 753483 is done, start using conditional GET for requests to Kuma. That is: Cache Kuma response bodies along with Last-Modified / Etag. Send If-Modified-Since and If-None-Match headers with subsequent requests.

If a 304 Not Modified response happens, use cached Kuma doc source for templates and documents. 

Additionally, KumaScript could choose to just skip the Kuma request altogether if there's a cached response not older than whatever the current Cache-Control: max-age directive specifies.
Depends on: 753483
Whiteboard: u=contributor c=wiki
Progress, close to a PR, semi-blocked by bug 740093
Whiteboard: u=contributor c=wiki → u=contributor c=wiki s=2012-06-05 p=2
Assignee: nobody → lorchard
Crud. So, I *meant* to submit a PR for this, but instead I just merged it along with the other code I meant to help address 740093:

https://github.com/mozilla/kumascript/commit/2d377e61d01eb8ea2af64e386bbfefe90836215e
By mistake, this is already merged... :/ if anybody objects, go ahead and reopen.
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Whiteboard: u=contributor c=wiki s=2012-06-05 p=2 → u=contributor c=wiki s=2012-06-05 p=2 t=2012-06-05
Status: RESOLVED → VERIFIED
Version: Kuma → unspecified
Component: Docs Platform → Editing
Product: developer.mozilla.org → developer.mozilla.org Graveyard
You need to log in before you can comment on or make changes to this bug.