Compare commits
2 Commits
17803410bd
...
b5fa470801
Author | SHA1 | Date | |
---|---|---|---|
b5fa470801 | |||
0854c9e76a |
@ -67,7 +67,7 @@ public class ServerController {
|
||||
CachedMinecraftServer server = serverService.getServer(platform, hostname);
|
||||
|
||||
return ResponseEntity.ok()
|
||||
.cacheControl(CacheControl.maxAge(1, TimeUnit.HOURS).cachePublic())
|
||||
.cacheControl(CacheControl.maxAge(5, TimeUnit.MINUTES).cachePublic())
|
||||
.contentType(MediaType.IMAGE_PNG)
|
||||
.header(HttpHeaders.CONTENT_DISPOSITION, dispositionHeader.formatted(hostname))
|
||||
.body(serverService.getServerPreview(server, platform, size));
|
||||
|
@ -59,7 +59,7 @@ class ServerControllerTests {
|
||||
|
||||
@Test
|
||||
public void ensureServerPreviewLookupSuccess() throws Exception {
|
||||
mockMvc.perform(get("/server/preview/java/" + testServer)
|
||||
mockMvc.perform(get("/server/java/preview/" + testServer)
|
||||
.contentType(MediaType.IMAGE_PNG))
|
||||
.andExpect(status().isOk());
|
||||
}
|
||||
|
Reference in New Issue
Block a user