@ Api public static void configureNoCaching ( HttpServletResponse response ) { // HTTP 1.0 header: response . setHeader ( HTTP_EXPIRES_HEADER , HTTP_EXPIRES_HEADER_NOCACHE_VALUE ) ; response . setHeader ( HTTP_CACHE_PRAGMA , HTTP_CACHE_PRAGMA_VALUE ) ; // HTTP 1.1 header: response . setHeader ( HTTP_CACHE_CONTROL_HEADER , HTTP_CACHE_CONTROL_HEADER_NOCACHE_VALUE ) ; }
Configure the HTTP response to switch off caching .