There is an intermittent issue with our UI running Jaspersoft reports where the browser hangs. The fix seems to be to clear the browser cache, or to open an Incognito window which starts with a new empty cache. Need your help to research whether there are any options on the Jaspersoft server that tell the browser not to cache? Is there a way to send any HTTP headers or Jaspersoft specific instruction to the browser that controls caching?
0 Answers:
No answers yet
Hi,
Cache control can done through applicationContext-webapp.xml file.
Could you try to add below lines for cache control in file /WEB-INF/applicationContext-webapp.xml.
<bean p:method="GET" p:urlPattern="/rest_v2/reportExecutions/.*" class="com.jaspersoft.jasperserver.war.httpheaders.HeadersRule"> <property name="headers"> <list>
<bean class="org.apache.http.message.BasicHeader">
<constructor-arg value="Cache-Control"/>
<constructor-arg value="no-cache,no-store"/>
</bean>
<bean class="org.apache.http.message.BasicHeader">
<constructor-arg value="Pragma"/>
<constructor-arg value="no-cache"/>
</bean>
</list>
</property> </bean>
Try adding it under <property name="headersRules">
Hello, were you able to solve this issue?. I am currently facing the same problem at my College, we have reports that are generated by URL, but we have to clean cache of our users every once in a while. Since we have around 1000 users or machines it becomes difficult to do this every time. I checked the applicationContext-webapp.xml but im not able to find the property name="headersRules" . I would be extremely thankful if you could provide any advice.
-David.
We had a discussion with TIBCO and resolved this issue by upgrading our Jaspersoft server to most recent version.
Thanks for the answer ruthran, we did upgrade, but we get another error on the latest version. Do you know where we could contact support directly. ?