Removed pointless conversion between timeunit and int.

This commit is contained in:
Clinton Alexander 2016-07-19 09:39:43 +01:00
parent f167708af5
commit 46b63fd967

View File

@ -122,7 +122,7 @@ class InterestRateSwapAPI(val services: ServiceHub) {
val resource = javaClass.getResourceAsStream("irswebdemo/" + resourcePath)
if(resource != null) {
val cacheControl = CacheControl();
cacheControl.maxAge = TimeUnit.SECONDS.toSeconds(0).toInt()
cacheControl.maxAge = 0
logger.info("200: serving ${filepath}")
return Response.ok(resource).cacheControl(cacheControl).build()
}