Skip to content

Ensure we modify cache-control header on cached response #1

Description

@four43

We need to update the cache-control header when serve out a cached response to make sure we subtract the elapsed time, for example:

First response at 02:00:00
Date: 02:00:00
Expires: 02:01:00
Cache-Control: max-age=60

Second response at 02:00:30 (cached)
Expires: 02:01:00
Cache-Control: max-age=60

^^ max-age should now be 30, not 60

Good thinking @eschwartz

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions