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
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