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

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>60493</bug_id>
          
          <creation_ts>2011-05-09 12:10:37 -0700</creation_ts>
          <short_desc>ApplicationCache - feature request for a way to override the fallback behavior</short_desc>
          <delta_ts>2011-05-09 22:32:39 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>WebCore Misc.</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Michael Nordman">michaeln</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>ap</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>400640</commentid>
    <comment_count>0</comment_count>
    <who name="Michael Nordman">michaeln</who>
    <bug_when>2011-05-09 12:10:37 -0700</bug_when>
    <thetext>Application Cache - feature request for a way to override the fallback behavior

This is a feature request from a team using the appcache for offline support. They&apos;re looking for a means of not invoking the fallback resource for some error responses that would generally result in the fallback resource being returned. An additional response header would suite they&apos;re needs... something like...

  x-webkit-appcache-fallback-override: disallow-fallback

If a header was present with that value, the fallback response would not be returned.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>400799</commentid>
    <comment_count>1</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2011-05-09 15:17:11 -0700</bug_when>
    <thetext>This sounds like something to discuss on HTML WG mailing list. But some more information about the use case would be nice to have - it sounds like the desire is to abuse error responses to pass real information, which is not necessarily so great.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>400898</commentid>
    <comment_count>2</comment_count>
    <who name="Michael Nordman">michaeln</who>
    <bug_when>2011-05-09 16:48:12 -0700</bug_when>
    <thetext>The app has a broad fallback namespace and there is a handler to handle the case when the server is not reachable. But this handler also gets triggered when the server is reachable in cases where the error is legitimate and should be delivered to the caller. So they&apos;ve requested a means of tagging responses such that they won&apos;t trigger the fallback response.

For example lets say the server response is a 404 along with a page that explains the object being accessed was deleted. Instead of seeing a page that sayz &quot;you must be offline, try again when online&quot;, that error page should come thru as is.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>400907</commentid>
    <comment_count>3</comment_count>
    <who name="Michael Nordman">michaeln</who>
    <bug_when>2011-05-09 16:55:35 -0700</bug_when>
    <thetext>There&apos;s a seperate bug open for this in the chromium project.
http://codereview.chromium.org/6969006/</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>400997</commentid>
    <comment_count>4</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2011-05-09 19:16:32 -0700</bug_when>
    <thetext>I think that this is a reasonable scenario. Still, a mailing list discussion seems like a pre-requisite.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>401062</commentid>
    <comment_count>5</comment_count>
    <who name="Michael Nordman">michaeln</who>
    <bug_when>2011-05-09 22:32:39 -0700</bug_when>
    <thetext>Yup, I&apos;ll ping the whatwg list with this feature request. I&apos;ve filed this bug in the interest of feature parity and leaving an audit trail to that end.

A change along these lines in headed for chrome12 (beta this week). The name of the header/value pair that overrides the fallback handling in chrome12 is...

   x-chromium-appcache-fallback-override: disallow-fallback</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>