public static void disableCaching ( HttpServletResponse response ) { response . addHeader ( PRAGMA_HEADER_NAME , "no-cache" ) ; response . addHeader ( CACHE_CONTROL_HEADER_NAME , "no-cache, no-store, max-age=0" ) ; response . addDateHeader ( EXPIRES_HEADER_NAME , 1L ) ; }
Disable caching in the client .