Sometimes you don’t want urls to be cached for various reasons (they can pull content from external sites with no way to invalidate the local cache, or they are just non meant to be available offline).
django-html5-appcache provides different ways to exclude urls from cache to meet as many usecases as possible.
To statically exclude urls from cache or add to the fallback section, use HTML5_APPCACHE_NETWORK_URL and HTML5_APPCACHE_NETWORK_URL.
In the AppCache classes, is it possible to override BaseAppCache._get_fallback and BaseAppCache._get_network to fine-tune the urls in each section of the manifest file.
When using sitemap, by default every relative URL is considered to be cached, while external URLs are not cached. It’s possible to control the behavior of each url by using custom attributes in your tags.
For each img, script and link tag, you can add data-attributes to control how each referenced url is considered: