You can now put headers inside the manifest :
CACHE MANIFEST
#////////////////////////
# Max-Validity: 2 Weeks and 5 Hours
# Check-Update-Every: 60 Minutes
# Update-Style: Immediate
# On-Update: reload
# On-Download: showLoadbar
#///////////////////////
CACHE:
/js/file1.js
/js/file2.js
- Getting the list of files
manifest.getFileList()
> [{"name":"/js/file1.js", "size":440}, {"name":"/js/file2.js", "size":10}]
- Getting the total size of all the files stored
manifest.getTotalSize()
> 450
- Force the check of an update
manifest.checkUpdates()
- Getting attributes
manifest.getAttributes()
> {Max-Validity: 1227600, Check-Update-Every: 3600, Update-Style: "Immediate", On-Update: "reload", On-Download: "showLoadbar"}
- Getting an attribute value
manifest.getAttribute('Max-Validity')
> 1227600