public static void setExpiresHeader(final HttpServletResponse response, final long expiresSeconds) {
		// Http 1.0 header, set a fix expires date.
		response.setDateHeader(HttpHeaders.EXPIRES, System.currentTimeMillis() + expiresSeconds * 1000);
		// Http 1.1 header, set a time after now.
		response.setHeader(HttpHeaders.CACHE_CONTROL, "private, max-age=" + expiresSeconds);
	}
public static void setExpiresHeader ( final HttpServletResponse response , final long expiresSeconds ) { response . setDateHeader ( HttpHeaders . EXPIRES , System . currentTimeMillis ( ) + expiresSeconds * 1000 ) ; response . setHeader ( HttpHeaders . CACHE_CONTROL , "private, max-age=" + expiresSeconds ) ; }
设置客户端缓存过期时间的 Header。

@param response
响应
@param expiresSeconds
过期时间