Skip to main content
Participating Frequently
October 12, 2017
Question

How do I force clearing the browser cache assuring users view current Captivate Course in their Browser

  • October 12, 2017
  • 3 replies
  • 804 views

Sometimes I publish a project to update an existing project and copy the files to the server but when I go to view it I see the previous Captivate project.  I understand that the browser is accessing the previous captivate project in the browser's cache.  If I clear the browser cache then I see the updated Captivate course.   

I know to clear the browser cache but how can I force clearing the cache for my users assuring they always see the current Captivate Project?

Thanks for your help with this. 

-Steve Lewis

This topic has been closed for replies.

3 replies

Participant
April 25, 2020

This is definitely still a problem, especially with recent Chrome browsers... On my website, I have caching for images for longer time, so I will change all my .htaccess rules to make sure I can serve "uncached" or very short caching period for the Captivate content. If I am successful, I will share what was done here in this topic.

TLCMediaDesign
Inspiring
October 13, 2017

If you own the server you can force the browser to serve the latest file type.

For apache you can edit the htaccess file:

ExpiresByType image/jpeg                            "access plus 0 seconds"

This will always serve the latest and greatest jpeg.

You can do this for all image types as well as other file types.

You can also use an activeX control to check browser setting and then access them through JavaScript and alert the user to change their settings. For example, in IE, check that the browser is set to check for a newer version of the page  every time the user accesses the page.

Participating Frequently
October 13, 2017

Thank you.

Writing a line of code in the .htaccess file sounds like a great way to do this.   Let's say I have an image "chair.jpg" and "desk.jpg."  Can you give me the exact line of code to put in the .htaccess file to make the browser reload the project from the server if the image expired.

Again, this is just what I was looking for.   Thank you.

-Steve

TLCMediaDesign
Inspiring
October 13, 2017

It would be:

ExpiresActive On

ExpiresByType image/jpeg                            "access plus 0 seconds"

ExpiresByType image/png                             "access plus 0 seconds"

If you already have the ExpiresActive On line, just put the line for jpeg underneath it.

If you have loaded those into Captivate they will be exported as encoded pngs though.

I can't test this, but you could also try:

ExpiresByType application/json                           "access plus 0 seconds"

ankits61431843
Inspiring
October 13, 2017

If I am not wrong this is something which has to be done before captivate project load so I think there is no possibility which you can force to clear browser cache from captivate.