Max-age

From Resin 3.0

Jump to: navigation, search


max-age is an HTTP Cache-Control value which tells the browser how long to cache a page for. max-age is also used as the default for s-max-age. The value of max-age is the time to cache in seconds.

caching a response for 15 seconds

response.addHeader("Cache-Control", "max-age=15");
Personal tools