Disable XSP Cache and Compression for XPage

/*****
 *** Disable XSP Cache and Compression for current response
 *** Add to BeforeRenderResponse-Event of XPage
 *****/
var response:com.ibm.xsp.webapp.XspHttpServletResponse;
response = facesContext.getExternalContext().getResponse();
response.disableXspCache(false);





Example disables internal XSP Cache and disables compression of current XPage (if enabled).

Explanation can be found here:
http://hasselba.ch/blog/?p=288

JavaScript (Server)
Sven Hasselbach
November 22, 2011 5:44 AM
Rating
174

All code submitted to OpenNTF XSnippets, whether submitted as a "Snippet" or in the body of a Comment, is provided under the Apache License Version 2.0. See Terms of Use for full details.



1 comment(s)Login first to comment...
jeniffer homes
(at 07:49 on 19.12.2015)
The isIE() method will return false. The getBrowser() method will return 'Unknown'.