mirror of
https://github.com/TeamPiped/Piped-Backend.git
synced 2024-08-14 23:51:41 +00:00
Cache videos for a maximum of 30 seconds on the client side.
This commit is contained in:
parent
ba54acdca9
commit
b63786a15e
1 changed files with 1 additions and 1 deletions
|
@ -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…
Reference in a new issue