Geeks With Blogs

Anirudha gupta

In your web-application if you are using mp3 file and on client side It’s partially cached and you want them to directly open them in browser it will not work. There is a little trick to get it worked.


Remember the query-string trick that is used for invalidate the cache in jQuery.

for example

if you don’t want to cache the stuff in browser then we use timestamp

Everytime time is new integer so this will never be cached.

Same thing can be used for mp3.

Now Chrome will not download the cached the mp3 file. The benefit of using this trick is chrome will not take a long time to show the file that chrome already have partially cached.

Posted on Thursday, September 26, 2013 11:41 AM | Back to top

Comments on this post: Chrome doesn’t open the mp3 file that is partially cached , how to get it ?

No comments posted yet.
Your comment:
 (will show your gravatar)

Copyright © Anirudha | Powered by: