Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Use HTML5 appCache with Django dynamic page

Tags:

html

django

I am experimenting the HTML5 appCache feature as our web app uses a lot of image resources. Also most pages are not static, but dynamic pages based on Django.

The problem is that when appCache is used for a page (more like a RESTFUL url), it will automatically download this page, but it seems there is no way to force invalidate this page when there are content updates on this page without changing the manifest file on the server side.

My question is, does this mean I can't use appcache on any dynamic pages? if not, how do I do it?

like image 395
ycseattle Avatar asked Jan 07 '11 05:01

ycseattle


1 Answers

Manifest files in HTML5 aren't intended to handle dynamically changing resources. It's purpose is common and constant assets used application-wide: things like CSS, JavaScript, and interface elements (icons, buttons, logos, backgrounds, etc) that make up the look and feel of the application (even if not used on the current view). This allows the common assets to be prefetched and cached, so that each view only has to load it's individualized content.

like image 106
Chris Pratt Avatar answered Nov 04 '22 00:11

Chris Pratt