w3-video.com logo

HTML5 Tutorial

Home HTML5 XAMPP .htaccess Firefox Notepad++

Share it



html manifest attribute FALLBACK section

Manifest appcache FALLBACK section

The Manifest FALLBACK section allows you to specify which alternative resource should be loaded from the local machine (resource previously cached) when it can't be loaded from Server:

Examples file.appacache: FALLBACK section

Valid Syntax 1
1
2
3
4
5
6
7
8
CACHE MANIFEST

CACHE:
resource1
resource2

NETWORK
resource_a
Valid Syntax 2
1
2
3
4
5
6
7
8
9
10
CACHE MANIFEST
resource1
resource2

NETWORK:
*

FALLBACK:
x/index.php manifestb.php
y/index.php manifestc.php
Valid Syntax 3
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
CACHE MANIFEST

FALLBACK:
z/index.php manifestc.php

CACHE:
resource1
resource2

NETWORK:
*

FALLBACK:
x/index.php manifestb.php
y/index.php manifestc.php
Valid Syntax 4
1
2
3
4
5
6
7
8
9
10
11
CACHE MANIFEST

FALLBACK:
z/index.php manifestc.php

CACHE:
resource1
resource2

NETWORK:
*

Video demonstration html manifest attribute: FALLBACK section

HTML5 appcache FALLBACK section, Tutorial

min video details
00:03 please watch the previous 2 tutorials called "manifest:cache" and "mnifest:fallback" where we presented the first 2 sections: CACHE: and NETWORK: because in this tutorial we will focus on the 3rd one called: FALLBACK
00:45 adding the FALLBACK: section to our manifest file followed by the fallback resources
00:55 the next line: x/index.php manifestb.php means:
- load "manifestb.php file from pc ONLY IF the index.php file from x folder can't be loaded from Server
01:20 the demo files have been uploaded on Server
01:20 accessing the html file which is linked to a manifest file
01:22 allowing the storage of the Offline files specified in the manifest file
01:26 accessing the "about:cache" page and checking the offline stored resources: the 4 files
01:48 Please Note: the manifestb.php file has been stored locally for Offline Use and will display if the file, path: x/index.php can't be displayed from Sever
01:58 testing Offline ⁄ Online:
1. Offline: should load only the 3 resources → ok
2. accessing the index.php file specified at FALLBACK section: manifestb.php file displays because we're on Offline mode, the server can't be accessed
02:43 putting down the Server, temporarly - test
02:47 3. Online:accessing the index.php file from x folder from Server, - manifestb.php file displays instead; the specified fallback ressource
html intro html optional html occurrences html browser display html children html syntaxhtml manifest attribute introappcache CACHE sectionappcache NETWORK sectionappcache ADVANTAGESappcache DISADVANTAGEappcache fixes: 1aappcache fixes: 1bappcache fixes: 2aappcache fixes: 2bappcache fixes: 2cappcache fixes: 3html class attributehtml contenteditable attributehtml contextmenu attributehtml dir attributehtml hidden attributehtml id attributehtml lang attributehtml spellcheck attributehtml style attributehtml title attributehtml translate attribute