mirror of
https://github.com/TeamPiped/Piped-Backend.git
synced 2025-04-29 00:10:31 +05:30
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