Disable caching of web resources

Christian Selbrede
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
August 16, 2012

How can I disable caching web resources in JIRA plugins?

I have a JavaScript file that I want to download, but it is totally inconsistent as far as returning the latest uploaded version. I have taken the advice from the plugin module description page and hold down Shift while refreshing the page, but that never seems to have any effect.

Here is the relevant part of my atlassian-plugin.xml file.

<web-resource key="tg-wikilinks-js" name="Web Resources JS">

<resource type="download" name="tg-wikilinks.js" location="includes/js/tg-wikilinks.js"/>

<context>jira.view.issue</context>

</web-resource>

4 answers

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

4 votes
Martin Wiegand October 31, 2012

Hi,

we have the same problem. Our static JS and CSS files are not updated for the users after an plugin update. How can we achive that the cache ist not set to NEVER EXPIRES. The users do not know about the plugin update and they do not know that they have to press SHIFT + RELOAD.

Thanks and best regards

Martin

2 votes
AbrahamA
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
January 5, 2014

is control+f5 only solution, is there a good solution for this problem.

2 votes
sw_lasse August 25, 2013

Hi, I have the same problem with our JS files - files are not updated after the plugin has been updated.

Is anyone getting closer to a solution to this problem?

Is there a flag we can set to disable/modify this "aggressive" caching policy?

(Running JIRA v5.2.11)

Thanks in advance.

/Lasse

0 votes
Martin Wiegand November 26, 2013

push

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

TAGS
AUG Leaders

Atlassian Community Events