<div dir="ltr"><div><div><div>FYI: FS-7323 was just committed to master that provides new ways to invalidate cached files.<br><br></div>new API: http_cache_remove <url><br></div>new file param: {refresh=true}<br><br></div><div>Also- if you want your cached files to be refreshed sooner, set the expiration server side with max-age or change the default config if max-age is not set.<br></div><div><br></div>Chris<br><br></div><div class="gmail_extra"><br><div class="gmail_quote">On Sat, Feb 7, 2015 at 7:52 AM, <span dir="ltr"><<a href="mailto:cmrienzo@gmail.com" target="_blank">cmrienzo@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I recommend giving all files and their updates unique names. If you can't go that, removal from the file system will trigger a new download.<br>
<div><div class="h5"><br>
<br>
> On Feb 7, 2015, at 04:19, Neil Patel <<a href="mailto:neilp@cs.stanford.edu">neilp@cs.stanford.edu</a>> wrote:<br>
><br>
> Hi All,<br>
><br>
> We are using mod_http_cache to store remote media for playback over IVR (lua). Once in a while the file at source gets updated/overwritten, so we want FS to be able to detect an invalid cache entry and re-download from the given URL.<br>
><br>
> Is there a way to dirty/clear a single http_cache entry? I don't believe there is a checksum mechanism, but that would do the trick. Is there a way to force-download a URL? Neither http_pre_fetch nor http_get does this. I don't see any way in the docs, so am considering managing this independently and manually removing files from the http_cache folder when we overwrite a source file.<br>
><br>
> Thanks,<br>
> Neil<br>
</div></div>> _________________________________________________________________________<br>
> Professional FreeSWITCH Consulting Services:<br>
> <a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>
> <a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br>
><br>
> Official FreeSWITCH Sites<br>
> <a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
> <a href="http://confluence.freeswitch.org" target="_blank">http://confluence.freeswitch.org</a><br>
> <a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><br>
><br>
> FreeSWITCH-users mailing list<br>
> <a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
> <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
> UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
> <a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
</blockquote></div><br></div>