Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cache should throw TypeError on VARY:* Responses. (gecko bug 1158292) #1787

Merged
merged 2 commits into from
Apr 30, 2015

Conversation

wanderview
Copy link
Member

For example:

  1. If response's associated response's header list contains a header named
    Vary, then:
    1. Let varyHeaders be the array containing the elements corresponding to the
      field-values of the Vary header.
    2. For each f in varyHeaders:
      1. If f matches "*", return a promise rejected with a TypeError.

From:

https://slightlyoff.github.io/ServiceWorker/spec/service_worker/index.html#cache-put

For example:

  5. If response's associated response's header list contains a header named
     `Vary`, then:
    1. Let varyHeaders be the array containing the elements corresponding to the
       field-values of the Vary header.
    2. For each f in varyHeaders:
      1. If f matches "*", return a promise rejected with a TypeError.

From:

  https://slightlyoff.github.io/ServiceWorker/spec/service_worker/index.html#cache-put
@hoppipolla-critic-bot
Copy link

Critic review: https://critic.hoppipolla.co.uk/r/4838

This is an external review system which you may optionally use for the code review of your pull request.

In order to help critic track your changes, please do not make in-place history rewrites (e.g. via git rebase -i or git commit --amend) when updating this pull request.

jgraham added a commit that referenced this pull request Apr 30, 2015
Cache should throw TypeError on VARY:* Responses. (gecko bug 1158292)
@jgraham jgraham merged commit edb6a40 into web-platform-tests:master Apr 30, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants