Print Page | Close Window

Refresh Web Page

Printed From: TMS Software
Category: WEB
Forum Name: WEB Core
Forum Discription:
Printed Date: 27 May 2020 at 12:55am

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

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 "\\.(html|htm|php)$">
  Header set Cache-Control "max-age=1, private, must-revalidate"
Header append Cache-Control must-revalidate

Any help would be appreciated.



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

Print Page | Close Window