<?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>14431</bug_id>
          
          <creation_ts>2011-10-11 17:23:35 +0000</creation_ts>
          <short_desc>Unclear whether to respect HTTP cache while checking for offline application manifest changes</short_desc>
          <delta_ts>2011-10-25 03:23:08 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>HTML WG</product>
          <component>HTML5 spec</component>
          <version>unspecified</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</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>major</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Honza Bambas (mozilla)">hbambas</reporter>
          <assigned_to name="Ian &apos;Hixie&apos; Hickson">ian</assigned_to>
          <cc>bugs</cc>
    
    <cc>ian</cc>
    
    <cc>julian.reschke</cc>
    
    <cc>mike</cc>
    
    <cc>public-html-admin</cc>
    
    <cc>public-html-wg-issue-tracking</cc>
          
          <qa_contact name="HTML WG Bugzilla archive list">public-html-bugzilla</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>58065</commentid>
    <comment_count>0</comment_count>
    <who name="Honza Bambas (mozilla)">hbambas</who>
    <bug_when>2011-10-11 17:23:35 +0000</bug_when>
    <thetext>http://www.whatwg.org/specs/web-apps/current-work/multipage/offline.html#downloading-or-updating-an-application-cache

In the chapter &quot;Downloading or updating an application cache&quot;, section &quot;Fetching the manifest&quot; it is not explicitly said whether to respect the cache for load of the manifest file from a server during check for manifest&apos;s changes.

Gecko implementation requires to send Cache-control: no-cache header, that forces a conditional request to the server or every fetch.  If that header had not been sent during the initial load of the manifest, any change in the manifest file made by a web admin on the server is simply not detected by the UA - Gecko doesn&apos;t sent a request and always satisfies from the cache (in this case the offline cache, that is being used in a role of an HTTP cache for the manifest load).

Other browsers seems to bypass the cache completely for the manifest load making it simpler for web admins to setup an offline web app and deploy its new versions.

From the point of view of performance, not respecting the cache is wasting of bandwidth, manifests can be of any size.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>58841</commentid>
    <comment_count>1</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2011-10-25 03:22:36 +0000</bug_when>
    <thetext>The intent here is to leave this up to HTTP. I&apos;ve updated the spec; it now says that user agents _should_ honour HTTP caching semantics, but _may_ employ cache defeating mechanisms.

In practice this is something I expect UA implementors to tune to fit the balance of reliability and bandwidth efficiency that they feel best represents their users&apos; needs.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>58842</commentid>
    <comment_count>2</comment_count>
    <who name="">contributor</who>
    <bug_when>2011-10-25 03:23:08 +0000</bug_when>
    <thetext>Checked in as WHATWG revision r6749.
Check-in comment: Talk more about HTTP caching semantics in the context of appcache.
http://html5.org/tools/web-apps-tracker?from=6748&amp;to=6749</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>