Note that there are some explanatory texts on larger screens.

plurals
  1. POCache control in iPhone web app - ajax loaded pages
    primarykey
    data
    text
    <p>Im looking for a guru on caching and ajax loaded pages :-)</p> <p>I have read a lot of input about the subject but are still unsure what the best way is to cache ajax pages. I would like to be sure that Im doing all I can to make my iPhone web app as fast as possible to load and navigate on.</p> <p>This is what I do and have: Im developing a iPhone web app with jqtouch and phonegap. Im including all js files,css files, index page, menu icons in the app when it is downloaded from the App Store. The js and css files are minified.</p> <p>All my subpages is loaded with ajax from my dedicated server. All subpages are .asp pages that gets its content from a mysql database every time a page is loaded.</p> <p>Since the iPhone cache pages I have to delete all ajax pages when I have visited them, otherwise an update wouldnt be visible. This is not the best way of doing things.</p> <p>Instead i would like to not delete the ajax pages and use the cache-controll.</p> <p>This is how I think it should work: Turn on cache-controll on the server(how is this done?) In the app, check the Last-Modified date and if it is not changes - read from the cache. If its changed - get the files from the server.</p> <p>Is this the best way of doing things? E-tag instead?</p> <p>I would like to know, how to set the windows 2008 server with IIS 7 with the right cache controll. How to write the correct header in the index files, and if I need to write som asp-read headers in my asp ajax pages?</p> <p>I hope somebody now how to do this? Any input appriciated, thanks!</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload