mirror of
https://github.com/TeamPiped/Piped-Backend
synced 2025-09-05 13:01:03 +02:00
Cache videos for a maximum of 30 seconds on the client side.
This commit is contained in:
parent
ba54acdca9
commit
b63786a15e
@ -87,7 +87,7 @@ public class ServerLauncher extends MultithreadedHttpServerLauncher {
|
||||
})).map(GET, "/streams/:videoId", AsyncServlet.ofBlocking(executor, request -> {
|
||||
try {
|
||||
return getJsonResponse(ResponseHelper.streamsResponse(request.getPathParameter("videoId")),
|
||||
"public, s-maxage=21540");
|
||||
"public, s-maxage=21540, max-age=30");
|
||||
} catch (Exception e) {
|
||||
return getErrorResponse(e, request.getPath());
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user