When using the reload() method, content is reloaded from the browser cache initially. To force a reload from the server, set the forceGet parameter to true like so: location.reload(true);
In your scenario, it's important to establish expiration times for CSS, JS, images, and fonts either in the .htaccess file within the web directory or in Apache's virtual host file.
<IfModule mod_expires.c>
ExpiresActive on
# It might be more effective to specify expires rules individually
ExpiresDefault "access plus 1 month"
# For caching appcache that requires re-requests in FF 3.6 (thanks Remy ~Introducing HTML5)
ExpiresByType text/cache-manifest "access plus 0 seconds"
# Expiry settings for various document types
ExpiresByType text/html "access plus 0 seconds"
# Data files
ExpiresByType text/xml "access plus 0 seconds"
ExpiresByType application/xml "access plus 0 seconds"
ExpiresByType application/json "access plus 0 seconds"
# RSS feed expiry
ExpiresByType application/rss+xml "access plus 1 hour"
# Favicon expiry (cannot be renamed)
ExpiresByType image/x-icon "access plus 1 week"
# Media expiry: images, video, audio
ExpiresByType image/gif "access plus 1 month"
ExpiresByType image/png "access plus 1 month"
ExpiresByType image/jpg "access plus 1 month"
ExpiresByType image/jpeg "access plus 1 month"
ExpiresByType video/ogg "access plus 1 month"
ExpiresByType audio/ogg "access plus 1 month"
ExpiresByType video/mp4 "access plus 1 month"
ExpiresByType video/webm "access plus 1 month"
# HTC files (for CSS3pie)
ExpiresByType text/x-component "access plus 1 month"
# Webfont expiry
ExpiresByType font/truetype "access plus 1 month"
ExpiresByType font/opentype "access plus 1 month"
ExpiresByType application/x-font-woff "access plus 1 month"
ExpiresByType image/svg+xml "access plus 1 month"
ExpiresByType application/vnd.ms-fontobject "access plus 1 month"
# CSS and JavaScript expiry
ExpiresByType text/css "access plus 1 year"
ExpiresByType application/javascript "access plus 1 year"
ExpiresByType text/javascript "access plus 1 year"
<IfModule mod_headers.c>
Header append Cache-Control "public"
</IfModule>
</IfModule>
For further information, visit