[html5] app manifest & 404/500 pages

Ian Hickson ian at hixie.ch
Wed Feb 8 12:30:24 PST 2012


On Tue, 7 Feb 2012, Josh Sharpe wrote:
>
> I have a manifest that looks somethin like this:
> 
> CACHE MANIFEST
> # e4a75fb378cb627a0d51a80c1cc5684c2d918d93e267f5854a511aa3c8db5b1a
> /a/application.js
> /a/application.css
> 
> NETWORK:
> *
> 
> FALLBACK:
> / /offline
> 
> The issue is that my /404.html and /500.html pages (that
> are obviously served up with a response code of 404 and 500) are triggering
> the fallback.  They both act just as if the server is offline.

This is intentional. A server responding with an error code or redirect is 
how we determine whether the server is offline or not.

(In practice, people are rarely "offline", so much as just in a very bad 
network situation or on wifi with a captive portal, where all traffic to 
your site gets redirected. That's why we use this mechanism.)

-- 
Ian Hickson               U+1047E                )\._.,--....,'``.    fL
http://ln.hixie.ch/       U+263A                /,   _.. \   _\  ;`._ ,.
Things that are impossible just take longer.   `._.-(,_..'--(,_..'`-.;.'



More information about the Help mailing list