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

  • Home
  • SEARCH
  • 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 6084651
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T11:32:49+00:00 2026-05-23T11:32:49+00:00

I am working with the HTML5 applicationCache API and I am having a problem

  • 0

I am working with the HTML5 applicationCache API and I am having a problem seeing updates to the cached page. I’m taking care of the basics – making changes to the manifest file, making sure the manifest isn’t caching on the client, and reloading the page after the new version of the cached page is downloaded (after onupdateready event).

I know the applicationCache API is supported in Chrome and FireFox, but I can only see the desired behavior (changes in cached page after updating manifest) in Opera and Safari.

Therefore, how do I ensure that I can see the latest cached version of the page in Chrome and FireFox?

Here’s my HTML/JavaScript (index.htm):

<!doctype html>
<html manifest="manifest.aspx">
<head>
    <title>Log</title>
    <script>
        window.onload = function () {

            if (window.applicationCache) {
                var log = document.getElementById("log");

                function logEvent(msg) {
                    log.innerHTML += "<li>" + msg + "</li>";
                }

                window.applicationCache.onchecking = function (e) {
                    logEvent("checking cache");
                }

                window.applicationCache.oncached = function (e) {
                    logEvent("cached");
                }

                window.applicationCache.onupdateready = function (e) {
                    logEvent("update ready");
                    logEvent("swapping cache");
                    applicationCache.swapCache();
                }

                window.applicationCache.onnoupdate = function (e) {
                    logEvent("no update");
                }

                window.applicationCache.onobsolete = function (e) {
                    logEvent("obsolete");
                }

                window.applicationCache.ondownloading = function (e) {
                    logEvent("downloading");
                }

                window.applicationCache.onerror = function (e) {
                    logEvent("error");
                }

                logEvent("window load");
            }
        }
    </script>
</head>
<body>
    <div>
        <h1>Message Logger 15</h1>

        <div id="eventLogContainer">
            <h2>Event Log</h2>
            <ul id="log"></ul>
        </div>

    </div>
</body>
</html>

Here’s my manifest (manifest.aspx):

CACHE MANIFEST
# version fifteen

CACHE:
index.htm

My manifest is a ASPX file, but the Content-Type is set to text/cache-manifest and Encoding is set to utf-8.

  • 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-23T11:32:50+00:00Added an answer on May 23, 2026 at 11:32 am

    Although updating the cache manifest will cause the browser to check for new files, whether or not those files are fetched from the server or from the local browser cache is determined by regular caching rules. Thus if your browser is configured to only look for a new version of any file once per day, or there are future expires headers being served with the files listed in your cache manifest, those files will not be updated when you update the manifest file (unless you empty the browser cache, or do a CTRL + F5).

    So in short: check what headers index.htm is getting served with.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm having a strange problem with the HTML5 manifest file under Chrome 5.0.375.99 but
I am currently working on the HTML5 File API, and I need to get
I'm trying to get an html5 demo page working on Android 2.1, have tried
I've just started working with HTML5's File API. I've been able to mimick imgur's
I'm working with the HTML5's File API ( tutorial here ) and I need
I'm making an html5 website. the page I'm encountering the issue is http://yamikowebs.com/blog.php right
I am working on building a HTML5 video player with a custom interface, but
I'm using the HTML5 elements and in a project i'm working on and the
I have a strange problem working with HTML,CSS in different browsers: Firefox 3.6 and
Working with PHP Xpath trying to quickly pull certain links within a html page.

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.