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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T06:43:53+00:00 2026-05-15T06:43:53+00:00

We want to make an audio based web based app that will have many

  • 0

We want to make an audio based web based app that will have many sound snippets. We want to cache these files so that performance is good and not dependent on network speed. Can HTML5 cache audio for offline mode?

  • 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-15T06:43:53+00:00Added an answer on May 15, 2026 at 6:43 am

    It certainly seems to me that this should work, and I can’t find any documentation that says it shouldn’t work (either from the W3C or from vendors like Apple), but putting audio files as resources in cache manifest just doesn’t seem to work with Safari on the iPad & iPhone at least.

    Sounds play fine when the app is in online (although it seems to load them anew each time and not cache them) and it doesn’t complain about the resources not being there when in offline mode (which is does immediately if you forget to include a JavaScript, CSS, HTML or image resource).

    Instead of complaining (or loading); if the element has a control that control is replaced with a box that says “Cannot play audio file.”. Alternatively, if it’s an element without a control – i.e. accessed via JavaScript all to .play() – then it simply just doesn’t play (it doesn’t cause any errors, there is just no sound, the JavaScript otherwise continues to execute normally).

    I have tested this with pretty small (<20k) files and the result is the same, so it doesn’t seem to be size related, just a blanket refusal to copy. I’m not sure if you can encode sound as a resource in a page (e.g. encoded in base64) the way you can with images, but I’m going to investigate that option – I suspect that would be possible. I tried encoding audio data as data URI strings and even tried generating audio on the fly – both work fine in Safari on the desktop but do not work on the iPhone / iPad OS (at least on version 3.x – I have not tried on iOS 4, but it won’t be out for a week, and is not expected for the iPad for a few months, even if they do fix it).

    I would guess the refusal to cache sound files in iOS is an implementation bug or intended limited functionality. It’s certainly annoying and a show stopper for a lot of use cases.

    I am not sure what happens with other HTML5 clients, I’d be interested to know (in particular on Andriod). Google’s support for audio hasn’t been stellar either, so it may suffer from the same limitations.

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

Sidebar

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.