w3-video.com logo

HTML5 Tutorial

Home HTML5 XAMPP .htaccess Firefox Notepad++

Share it



html manifest attribute NETWORK section

Manifest appcache NETWORK section

The Manifest NETWORK section allows you to add the resources to be loaded from Server all the time (non-cached resources):

Examples file.appacache: NETWORK section

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

CACHE:
resource1
resource2

FALLBACK
folder1/index.php fallback.php
Valid Syntax 2
1
2
3
4
5
6
7
CACHE MANIFEST
resource1
resource2

NETWORK:
resource_a
resource_b
Valid Syntax 3
1
2
3
4
5
6
CACHE MANIFEST
resource1
resource2

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

NETWORK:
resource_a

NETWORK:
resource_b
Valid Syntax 5
1
2
3
4
5
6
7
8
9
10
CACHE MANIFEST

NETWORK:
resource_a

CACHE:
resource1

NETWORK:
resource_b

Video demonstration html manifest attribute: NETWORK section

HTML5 appcache NETWORK section, Tutorial

min video details
00:03 please watch the previous tutorial called "manifest:cache" where we presented the 1st section: CACHE, because in this tutorial we will focus on the 2nd one called: NETWORK
00:21 adding the NETWORK section to our manifest file and a *
00:25 EXPLANATIONS:
- cache "main.css" file and load it from Offline cache folder (your pc) the 2nd time you access the same cached html page
- all the rest (*) uncached resources, when Online, load them, from Server
00:29 the 3 cached resources
00:33 the uncached resources are the 2 images: ck91.png, w3video.png
00:51 the demo files have been uploaded on server; accessing the cached file "manifest.php" with its cached resources "main.css" and the manifest file itself (test.appcache)
00:58 "Allow" files local storage for Offline use
01:05 accessing the "about:cache" page and checking the offline stored resources: the 3 files
01:27 testing Offline ⁄ Online:
1. Offline: should load only the 3 resources → ok
2. Online: should load the 3 cached resources from pc and the rest of them from Server (the 2 images) → ok
00:00
Note:
when caching resources (adding only the 1st section CACHE or none, in which case the resources are added right under the CACHE MANIFET): when testing Online and IF the rest of the resources does not load from Server, then add the 2nd section : NETWORK and * like this:

MANIFEST FILE

CACHE:
main.css

NETWORK:
*
html intro html optional html occurrences html browser display html children html syntaxhtml manifest attribute introappcache CACHE sectionappcache FALLBACK 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