<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://www.w3.org/Bugs/Public/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4"
          urlbase="https://www.w3.org/Bugs/Public/"
          
          maintainer="sysbot+bugzilla@w3.org"
>

    <bug>
          <bug_id>23653</bug_id>
          
          <creation_ts>2013-10-28 14:17:35 +0000</creation_ts>
          <short_desc>Advice on CORS and caches</short_desc>
          <delta_ts>2014-05-19 12:56:39 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WHATWG</product>
          <component>Fetch</component>
          <version>unspecified</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Windows 3.1</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>Unsorted</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Anne">annevk</reporter>
          <assigned_to name="Anne">annevk</assigned_to>
          <cc>hillbrad</cc>
    
    <cc>mike</cc>
    
    <cc>odinho</cc>
    
    <cc>public-webapps</cc>
    
    <cc>public-webappsec</cc>
    
    <cc>rob</cc>
    
    <cc>w3c</cc>
          
          <qa_contact>sideshowbarker+fetchspec</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>95432</commentid>
    <comment_count>0</comment_count>
    <who name="Anne">annevk</who>
    <bug_when>2013-10-28 14:17:35 +0000</bug_when>
    <thetext>+++ This bug was initially created as a clone of Bug #14663 +++

At the F2F it was established we should have a section giving authors advice on how to deal with caches and CORS. Adam volunteered to write up a proposal.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>95436</commentid>
    <comment_count>1</comment_count>
    <who name="Anne">annevk</who>
    <bug_when>2013-10-28 14:21:12 +0000</bug_when>
    <thetext>See also bug 21012 by Brock Allen about mentioning Vary.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>102250</commentid>
    <comment_count>2</comment_count>
    <who name="">rob</who>
    <bug_when>2014-03-12 18:30:31 +0000</bug_when>
    <thetext>Is this bug about caching proxies or the browser&apos;s cache?

Currently the specification does not specify what should happen with cross-origin cached requests from multiple servers.

For example, let&apos;s imagine that the following image is used by multiple sites:

    &lt;img crossorigin=&quot;anonymous&quot; src=&quot;http://example.com/x.png&quot;&gt;

The server checks access on the fly and replies with a non-wildcard Access-Control-Allow-Origin header and caching directives:

    Access-Control-Allow-Origin: http://example.com
    Cache-Control: max-age=3600

The browser stores this response in a cache. When the image is referenced again, but at a different site, the request is blocked, because the browser does not look past its cache (at the moment).

Could the intended behavior for this use case be specified?

FYI, I discovered the bug at https://github.com/Rob--W/cors-anywhere/issues/6.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>102475</commentid>
    <comment_count>3</comment_count>
    <who name="Anne">annevk</who>
    <bug_when>2014-03-17 18:06:13 +0000</bug_when>
    <thetext>Right, that is the scenario. The advice would be to use the Vary header (which does not work well with proxies unfortunately).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>106338</commentid>
    <comment_count>4</comment_count>
    <who name="Anne">annevk</who>
    <bug_when>2014-05-19 12:56:39 +0000</bug_when>
    <thetext>https://github.com/whatwg/fetch/commit/fb04b72c54fc14d487184c6716a0b0f15832d5c2</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>