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 8643289
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T11:59:51+00:00 2026-06-12T11:59:51+00:00

Is it possible to add or remove files from a cache manifest using Javascript

  • 0

Is it possible to add or remove files from a cache manifest using Javascript after the page has loaded?

Alternatively, is it possible to change the source and trigger a reload of the cache manifest after the page has loaded? I am thinking that since my manifest it dynamic, I can use javascript to store a list of required files and send them to php to list in an updated manifest file.

  • 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-06-12T11:59:53+00:00Added an answer on June 12, 2026 at 11:59 am

    It is not possible to add/remove individual files from JavaScript. The current implementation of app cache is all or nothing. If the cache manifest is updated, all files referenced in that file will be downloaded.

    It is possible to trigger a reload if new cached files are downloaded with the following code:

    if (window.applicationCache) {
        applicationCache.addEventListener('updateready', function() {
            if (confirm('An update is available. Reload now?')) {
                window.location.reload();
            }
        });
    }
    

    I have some other details in a recent blog post on HTML5 app cache – http://gregsramblings.com/2012/05/28/html5-application-cache-how-to/

    Greg

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

Sidebar

Related Questions

Is it possible to add or remove slides in runtime using FlexSlider ?
It is possible to add and remove elements from an enum in Java at
Is it possible to get an XML file (not HTML) from a server, add/remove/edit
Is it possible to add messages to the built-in error console of Firefox from
I have a Git repo that I have deleted four files from using rm
ALTER TABLE variable ADD KEY somekey name I want to remove the line from
Possible Duplicate: My HTML5 Application Cache Manifest is caching everything I have made an
Is it possible to remove a file, with all version history, from SVN? For
Possible Duplicate: How to remove an XmlNode from XmlNodeList Hi, How can i delete
Is it possible to add button click event by clicking design of axml? if

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.