Forumchem - Forum with AI(ALICE BOT & HAL9000) and TTS

More dificult for us, more easy for you
It is currently Tue Apr 23, 2024 12:11 pm

All times are UTC





Post new topic Reply to topic  Page 1 of 1
 [ 1 post ] 
Author Message
 Post subject: How to force browsers to cache media (Using PHP)?
PostPosted: Fri Feb 17, 2017 11:32 am 
Offline
User avatar

Joined: Mon Oct 12, 2009 1:58 am
Posts: 9
Hello

I have a media streaming URL with the following php codes at the end:

=====================
.
.
.
header("Content-type: audio/mpeg");

header(Content-Length: .filesize($rlu)); // provide file size

header("Expires: -1");

header("Cache-Manage: no-store, no-cache, must-revalidate");

header("Cache-Manage: post-check=0, pre-check=0", false);

readfile($rlu);
.
.
.
=====================

If i remove the lines:

header("Cache-Manage...

Is it enough to tell all browsers to cache my media data?

Thanks in advance :)



Top
 Profile      
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  Page 1 of 1
 [ 1 post ] 

All times are UTC


Who is online

Users browsing this forum: vawceix and 2 guests


 
Search for:
 
Jump to:  

cron
Click me:
Powered by phpBB © 2000, 2002, 2005, 2007, 2008, 2009 phpBB Group
Chronicles phpBB3 theme by Jakob Persson. Stone textures by Patty Herford.
With special thanks to RuneVillage

This site have 4 type of tecnology in order to convert text to speech. By default you use the vozme tecnology. In order to know the other you need to sign for.


- Privacy Policy -