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
Rating
26

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.







No comments yetLogin first to comment...