Clearing cache on user browser

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?

ruthran's picture
Joined: May 8 2012 - 9:19pm
Last seen: 2 years 12 months ago


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 class="org.apache.http.message.BasicHeader">

<constructor-arg value="Pragma"/>

<constructor-arg value="no-cache"/>



</property> </bean>

Try adding it under <property name="headersRules">

sthomas_3 - 4 years 4 months ago

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.


dtapia - 3 years 7 months ago

We had a discussion with TIBCO and resolved this issue by upgrading our Jaspersoft server to most recent version. 

ruthran - 3 years 7 months ago
show 1 more...

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. ?

dtapia - 3 years 7 months ago

0 Answers:

No answers yet