Open b2cbd opened 5 years ago
Both of this are expected:
It has nothing to do with the cache. It's just that caddy adds the Server
header instead of replacing the other one. If you don't want it, you can use the directive header / -Server
(outside cache), to remove the Server: YourHLSServer
. If you remove the cache, the issue will happen, too.
This is expected, maybe confusing but by default the plugin will cache every resource that has cache-control
header or similar set. The config just enables more resources to be cached (unless they specify they are private). If you don't want the images, js or other files to be cached by the plugin you should use cache-control: private
. The plugin should also support s-max-age
or something like that to make clients cache the resources but not the server, but it's not implemented right now.
Does this answer your questions?
I’m trying to reverse proxy and cache a HLS/M3U8 live streaming. In HLS live streaming, m3u8 playlist file contains video “chunk” file name with TS extension which is exactly 10 seconds long. So I’m trying to cache those TS files. There is no reason to download same TS files for every new user in my reverse proxy server.
and my caddyfile
I’m having two issues using this configs.