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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T05:40:15+00:00 2026-05-13T05:40:15+00:00

I had good luck with cached offline apps until I tried including data from

  • 0

I had good luck with cached offline apps until I tried including data from JSONP endpoints. Here’s a tiny example, which loads a single movie from the new Netflix widget API:

<!DOCTYPE html>
<html manifest="main.manifest">
   <head>
      <title>Testing!</title>
   </head>
   <body>
   <p>Attempting to recover a title from Netflix now...</p>
   <script type="text/javascript">
   function ping(r) { alert('API reply: ' + r.catalog_title.title.regular); }
   var cb = new Date().getTime();
   var s = document.createElement('SCRIPT');
   s.src = 'http://movi.es/7Soq?v=2.0&output=json&expand=widget&callback=ping&cacheBuster=' + cb;
   alert('SCRIPT src: ' + s.src);
   s.type = 'text/javascript';
   document.getElementsByTagName('BODY')[0].appendChild(s);
   </script>
</body>
</html>

… and here’s the contents of my manifest, main.manifest, which contains no files and is only there so my browser knows to cache the calling HTML file.

CACHE MANIFEST

Yes, I’ve confirmed that my server is sending the manifest down with the correct content type, text/cache-manifest.

The app works fine–meaning both alerts show–the first time I run it, but subsequent runs, even with the attempt at cache-busting in line 10, seem to be attempting to load the script from cache no matter what the query string is. I see the alert showing the script source, but the callback never fires.

If I remove the manifest link from line 2 and reset my browser–being Safari and the iPhone Simulator–to clear cache, it works every time. I’ve also tried alerting the number of SCRIPT tags in the page, and it’s definitely seeing both the existing and dynamically-created tag in all cases.

  • 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-13T05:40:15+00:00Added an answer on May 13, 2026 at 5:40 am

    Aha, found it in the spec, of all the crazy places:

    http://www.whatwg.org/specs/web-apps/current-work/multipage/offline.html#concept-appcache-onlinewhitelist-wildcard

    I needed to add http://movi.es/ to the NETWORK: section of my manifest. Complete file now looks like this:

    CACHE MANIFEST
    
    NETWORK:
    http://movi.es/
    

    … and seems to hit the network every time.

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

Sidebar

Related Questions

Had a good search here but can't see anything that gets my mind in
What memory leak detectors have people had a good experience with? Here is a
So I tried searching SO hoping someone had a good explanation of this, with
I have not had much luck hunting for finding a good explanation of what
I've done a good amount of research here on Stack Overflow and I've tried
I had good luck finding a way to achieve intersect() faster on stack overflow
I’ve had a good look and can’t seem to find out how to select
I've had a good look around and am certain that there's no matching question
I was wondering if anyone had some good general information on windows terminal services
I was wondering if anybody out there had some good tips/dos and don'ts for

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.