[Freeswitch-users] {mod_http_cache} Is there a way to use http_remove_cache command with multiple file
Christopher Rienzo
cmrienzo at gmail.com
Fri Feb 5 15:54:10 UTC 2021
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 at gmail.com> wrote:
> 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.wav
> Or
> ->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 at 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 at lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> https://freeswitch.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20210205/711b9b7e/attachment-0001.html>
More information about the FreeSWITCH-users
mailing list