change cachecontrol for server previews to be lower
This commit is contained in:
parent
17803410bd
commit
0854c9e76a
@ -67,7 +67,7 @@ public class ServerController {
|
|||||||
CachedMinecraftServer server = serverService.getServer(platform, hostname);
|
CachedMinecraftServer server = serverService.getServer(platform, hostname);
|
||||||
|
|
||||||
return ResponseEntity.ok()
|
return ResponseEntity.ok()
|
||||||
.cacheControl(CacheControl.maxAge(1, TimeUnit.HOURS).cachePublic())
|
.cacheControl(CacheControl.maxAge(5, TimeUnit.MINUTES).cachePublic())
|
||||||
.contentType(MediaType.IMAGE_PNG)
|
.contentType(MediaType.IMAGE_PNG)
|
||||||
.header(HttpHeaders.CONTENT_DISPOSITION, dispositionHeader.formatted(hostname))
|
.header(HttpHeaders.CONTENT_DISPOSITION, dispositionHeader.formatted(hostname))
|
||||||
.body(serverService.getServerPreview(server, platform, size));
|
.body(serverService.getServerPreview(server, platform, size));
|
||||||
|
Loading…
Reference in New Issue
Block a user