Print Page | Close Window

Refresh Web Page

Printed From: TMS Software
Category: WEB
Forum Name: WEB Core
Forum Discription:
URL: http://www.tmssoftware.com/site/forum/forum_posts.asp?TID=13436
Printed Date: 20 Sep 2019 at 7:11am


Topic: Refresh Web Page
Posted By: Randall Ken
Subject: Refresh Web Page
Date Posted: 19 May 2019 at 9:09am
Hi,

When running on an apache web server the application is still in cache and therefore not showing the latest version until the page is refreshed by the user. How can I get round this?

I do have a .htaccess file as follows but whilst this works for a normal website it doesn't work for a Web Core app:

ExpiresActive On
ExpiresDefault "access plus 5 seconds"
ExpiresByType image/png "access plus 1 day"
ExpiresByType image/ico "access plus 1 day"
<filesMatch "\\.(html|htm|js|css|php|xml|json)$">
  SetOutputFilter DEFLATE
</filesMatch>
<filesMatch "\\.(html|htm|php)$">
  Header set Cache-Control "max-age=1, private, must-revalidate"
</filesMatch>
Header append Cache-Control must-revalidate

Any help would be appreciated.

Thanks,

Ken



Replies:
Posted By: Randall Ken
Date Posted: 19 May 2019 at 11:53am
Please ignore this, I have it working now!



Print Page | Close Window