Sponsor: VoiceMeUp - Corporate & Wholesale VoIP Services

VoIP Mailing List Archives
Mailing list archives for the VoIP community
 SearchSearch 

[Freeswitch-users] {mod_http_cache} Is there a way to use http_remove_cache command with multiple file


 
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> freeSWITCH Users
View previous topic :: View next topic  
Author Message
ykalayy7 at gmail.com
Guest





PostPosted: Fri Feb 05, 2021 10:51 am    Post subject: [Freeswitch-users] {mod_http_cache} Is there a way to use ht Reply with quote

Hi everyone,I want to delete multiple http caches from freeswitch in one command instead of one command for each file. Is there any way to do that? I tried a separate the files with '&' or ' ', but it does not work. Like below: 
->http_remove_cache http://example.com/media/hello_world.wav&http_remove_cache http://example.com/media/hello_world_2.wavOr->http_remove_cache http://example.com/media/hello_world.wav&http://example.com/media/hello_world_2.wav

Regards Yusuf
Back to top
cmrienzo at gmail.com
Guest





PostPosted: Fri Feb 05, 2021 11:16 am    Post subject: [Freeswitch-users] {mod_http_cache} Is there a way to use ht Reply with quote

No, this isn't possible.  You can clear the whole cache, execute api to expire an individual URL, prefix the url with {refresh=true}http://example.com/myfile.wav to force it to discard the cached file,  have your server set Cache-Control: max-age= to set a reasonable expiration, or change the default expiration in the config if there is no Cache-Control set.  Best practice is to rename the file if you want to ensure immediate recaching.

Chris




On Fri, Feb 5, 2021 at 10:46 AM Yusuf KALAY <ykalayy7@gmail.com (ykalayy7@gmail.com)> wrote:

Quote:

Hi everyone,I want to delete multiple http caches from freeswitch in one command instead of one command for each file. Is there any way to do that? I tried a separate the files with '&' or ' ', but it does not work. Like below: 
->http_remove_cache http://example.com/media/hello_world.wav&http_remove_cache http://example.com/media/hello_world_2.wavOr->http_remove_cache http://example.com/media/hello_world.wav&http://example.com/media/hello_world_2.wav

Regards Yusuf
_________________________________________________________________________

The FreeSWITCH project is sponsored by SignalWire https://signalwire.com
Enhance your FreeSWITCH install with disruptive priced SMS and PSTN services.
Build your next product on our scalable cloud platform.

Join our online community to chat in real time https://signalwire.community

Professional FreeSWITCH Services
sales@freeswitch.com (sales@freeswitch.com)
https://freeswitch.com

Official FreeSWITCH Sites
https://freeswitch.com/oss
https://freeswitch.org/confluence
https://cluecon.com

FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org (FreeSWITCH-users@lists.freeswitch.org)
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
https://freeswitch.com
Back to top
Display posts from previous:   
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> freeSWITCH Users All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group

VoiceMeUp - Corporate & Wholesale VoIP Services