A fix for front end view for sites that implement page caching for example WPEngine