User uploaded images are not cached in browser

Hi,

we just introduced Confluence as our corporate intranet when I noticed that all images that where uploaded by users get an expires http header of January 1st, 1970. As a results they never get cached.

Is there a way to change this behaviour ?

Regards,

Michael

4 answers

0 vote

Hi Michael,

This is strange. Do this happen to just one browser? All users are affected?

I think this is something environmental. Can you check if the behavior happens in another confluence in other machine?

Regards

Rodrigo

Hi, I was able to reproduce that with IE,FF and Chrome.

And I was able to reproduce it on a windows box and a linux box.

All Confluence 4.3.

Here is an example header for a user uploaded image:

Cache-Control private, max-age=315360000
Connection Keep-Alive
Date Tue, 06 Aug 2013 13:46:49 GMT
Etag "1375771124000"
Expires Thu, 01 Jan 1970 00:00:00 GMT
Keep-Alive timeout=5, max=93
Server Apache
Vary Accept-Encoding

I doubt this is a Confluence setting. You can modify the headers in Tomcat:

http://tomcat.apache.org/tomcat-7.0-doc/api/org/apache/catalina/filters/ExpiresFilter.html

Do you really suggest to change the tomcat confluence was bundled with?

Sure! It's just a web server and Confluence is just a web app. If you're using it in production, you'd likely make other configuration changes anyway.

Suggest an answer

Log in or Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Kesha Thillainayagam
Posted Apr 13, 2018 in Confluence

We want to hear how your non-technical teams are using Confluence!

Hi Community! Kesha (kay-sha) from the Confluence marketing team here! Can you share stories with us on how your non-technical (think Marketing, Sales, HR, legal, etc.) teams are using Confluen...

364 views 20 10
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you