Web forum is in read-only mode. Login as active registered customer for write access
  Forum Search   New Posts New Posts

Refresh Web Page

 Post Reply Post Reply
Author
Randall Ken View Drop Down
Senior Member
Senior Member
Avatar

Joined: 25 Oct 2014
Posts: 646
Post Options Post Options   Quote Randall Ken Quote  Post ReplyReply Direct Link To This Post Topic: Refresh Web Page
    Posted: 19 May 2019 at 11:53am
Please ignore this, I have it working now!
Back to Top
Randall Ken View Drop Down
Senior Member
Senior Member
Avatar

Joined: 25 Oct 2014
Posts: 646
Post Options Post Options   Quote Randall Ken Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down