Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 5966053
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T19:44:15+00:00 2026-05-22T19:44:15+00:00

I’m working on an ipad webapp that will receive monthly changes. However I can

  • 0

I’m working on an ipad webapp that will receive monthly changes.
However I can not figure out how to let the user decide weither to update the cache or not. The ipad tends to just go ahead and update when it notices a change to the manifest file. I would like to prevent this so users that haven’t finished reading this months issue can update when they feel like it. I’ve searched for a solution to this question but I fail to find any usable information.

The way my app is set up is I’ve got a content page that fetches data from the database and all the other files (appart from media that is added to the content page) is static.

I have an cache.manifest with every file in it and a version number automatically changed on update at that top in a comment.

So an update to the content means a new manifest and that means the updateReady event is fired. If anyone could give me any pointers on how to catch this and prevent it from automatically switching to the new version, that would be nice.

Thanks!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-22T19:44:16+00:00Added an answer on May 22, 2026 at 7:44 pm

    How to stop app to be updated?

    Once an application is offline it remains cached until one of the following happens:

    • The user clears their browser’s data storage for your site.
    • The manifest file is modified. Note: updating a file listed in the manifest doesn’t mean the browser will re-cache that resource. The manifest file itself must be alternated.
    • The app cache is programatically updated.

    http://www.html5rocks.com/tutorials/appcache/beginner/#toc-updating-cache

    In short: do not modify manifest file.

    How to update manifest file for each user individually?

    If user visit website first time, his browser loads current manifest, so We’d use dynamic URL and generate manifest file dynamically:

    <html manifest="manifest.php?version=2">
    

    Browser remembers URL manifest.php?version=2 and every time generated manifest file remains same, so browser won’t update (manifest file is unmodified).
    Script file would looks like:

    <?php
    
        header ( "Content-Type: text/cache-manifest" ) ;
    
        echo "CACHE MANIFEST\n\n" ;
    
        echo "# version " . $_GET [ "version" ] . "\n" ;
    
        echo "index.php\n" ;
        echo "styles.css\n" ;
        echo "scripts.js\n" ;
    
    ?>      
    

    Now, how to force browser to load manifest form another URL, for example manifest.php?version=5?

    I tried to change manifest attribute content and call window.applicationCache.update()
    but browser requests manifest file from old URL.

    Another way might be:

    • ask user if he/she wants to update;
    • if yes, then save cookie (“wish_to_update=1”);
    • in manifest.php read cookie and check if user wishes to update;

    in manifest.php:

    if ( $_COOKIE [ "wish_to_update" ] == "1" )
    {
        // generate modified version
        echo "# version another than in your URL" ;
        setcookie ( "wish_to_update", "0" ) ;
     }
     else
     {
        // generate unmodified version
        echo "# version " . $_GET [ "version" ] . "\n" ;
     }
    
    • modified manifest file will force browser to download all resources again.
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I need a function that will clean a strings' special characters. I do NOT
I'm parsing an RSS feed that has an &#8217; in it. SimpleXML turns this
I'm trying to decode HTML entries from here NYTimes.com and I cannot figure out
I'm working with an upstream system that sometimes sends me text destined for HTML/XML
link Im having trouble converting the html entites into html characters, (&# 8217;) i
That's pretty much it. I'm using Nokogiri to scrape a web page what has
I have a jquery bug and I've been looking for hours now, I can't
I have a string like this: La Torre Eiffel paragonata all&#8217;Everest What PHP function
I've got a string that has curly quotes in it. I'd like to replace
I have a French site that I want to parse, but am running into

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.