0
Welcome Guest! Login
0 items Join Now

Page not updating in Chrome

    • Wicko's Avatar
    • Wicko
    • Elite Rocketeer
    • Posts: 884
    • Thanks: 8
    • Self employed Graphic designer with over 20 years of experience in branding, retail packaging and web design.

    Page not updating in Chrome

    Posted 9 years 10 months ago
    • Is there a way you can instruct a browser to load the latest version of a page and not use cached content?

      I have had an issue with Chrome on a site. The site cache is set to 15 minutes and I clear all cache after I make changes anyway. But for some reason Chrome doesn't want to know. If I clear the cache in the browser then I can get Chrome to reload the page fine.

      But the main issue is that people who may have visited my site before and then return will not see the latest page unless they clear their browser cache. No average customer is going to do that.

      For instance I have a customer who was viewing my website and their browser was still displaying the site from 3 weeks ago and had totally missed 3 weeks of new blog posts and other updates to page content. OK I was able to get them to refresh their cache and see the latest page details, but they shouldn't have to do this.

      Is there a way to tell a browser to clear cache for your site if older that a set period so this never happens?

      Site is running Joomla version 3.3.6 and has cache enable and set as conservative and duration as 15 mins.
    • This image is hidden for guests.
      Please log in or register to see it.

      Wicko Design is a multi-disciplined creative agency based in the South East of England. Specialising in web design & development, retail packaging and brand identity.

      https://www.wickodesign.com
    • MrT's Avatar
    • MrT
    • Preeminent Rocketeer
    • Posts: 101084
    • Thanks: 13482
    • Web Designer/Developer

    Re: Page not updating in Chrome

    Posted 9 years 10 months ago
    • You can change the expires period on certain content using htaccess file http://perishablepress.com/stupid-htaccess-tricks/

      You can also exclude modules from being cached in joomla module settings.

      Regards, Mark.
    • Please search forums before posting. Please make sure your post includes the version of the CMS you are using and a link to the problem. Annotations on screenshots can also be helpful to explain problems/goals. Please use the "secure" tab for confidential information.
    • Wicko's Avatar
    • Wicko
    • Elite Rocketeer
    • Posts: 884
    • Thanks: 8
    • Self employed Graphic designer with over 20 years of experience in branding, retail packaging and web design.

    Re: Page not updating in Chrome

    Posted 9 years 10 months ago
    • Thanks Mark

      I don't think turning the module cache off will sold the issue as it is not the site cache that is cauing the problem.

      The Stupid htaccess tricks looks more likely to solve my issues. Hopefully this will tell Chrome to refresh its own cache after a set period.

      Lets see.
    • This image is hidden for guests.
      Please log in or register to see it.

      Wicko Design is a multi-disciplined creative agency based in the South East of England. Specialising in web design & development, retail packaging and brand identity.

      https://www.wickodesign.com
    • Wicko's Avatar
    • Wicko
    • Elite Rocketeer
    • Posts: 884
    • Thanks: 8
    • Self employed Graphic designer with over 20 years of experience in branding, retail packaging and web design.

    Re: Page not updating in Chrome

    Posted 9 years 10 months ago
    • immediate 500 error when I tried to add any of the scripts to my htaccess file.

      Need to check this with my server provider as might have to allow these comments first
    • This image is hidden for guests.
      Please log in or register to see it.

      Wicko Design is a multi-disciplined creative agency based in the South East of England. Specialising in web design & development, retail packaging and brand identity.

      https://www.wickodesign.com
    • MrT's Avatar
    • MrT
    • Preeminent Rocketeer
    • Posts: 101084
    • Thanks: 13482
    • Web Designer/Developer

    Re: Page not updating in Chrome

    Posted 9 years 10 months ago
    • Yes, talk to your host because those instructions shouldn't cause a server500 - look in the apache error log for more details as to why this is occurring.

      Regards, Mark.
    • Please search forums before posting. Please make sure your post includes the version of the CMS you are using and a link to the problem. Annotations on screenshots can also be helpful to explain problems/goals. Please use the "secure" tab for confidential information.
    • Wicko's Avatar
    • Wicko
    • Elite Rocketeer
    • Posts: 884
    • Thanks: 8
    • Self employed Graphic designer with over 20 years of experience in branding, retail packaging and web design.

    Re: Page not updating in Chrome

    Posted 9 years 10 months ago
    • Actually the code on studip htaccess tricks causes 500 but also checked here htaccessredirect
      This creates many different htaccess options. But this initially cause a 500 too until I commented the first line.

      original
      //Caching schema
      <FilesMatch "\.(jpg|png|js|css)$">
      Header set Cache-Control "public, max-age=3600"
      </FilesMatch>

      changed

      #//Caching schema
      <FilesMatch "\.(jpg|png|js|css)$">
      Header set Cache-Control "public, max-age=3600"
      </FilesMatch>

      this worked or at least didn't give 500 error

      set cache for 1 hour so hopefully this will prevent browsers holding on to my site cache for too long
    • This image is hidden for guests.
      Please log in or register to see it.

      Wicko Design is a multi-disciplined creative agency based in the South East of England. Specialising in web design & development, retail packaging and brand identity.

      https://www.wickodesign.com
    • MrT's Avatar
    • MrT
    • Preeminent Rocketeer
    • Posts: 101084
    • Thanks: 13482
    • Web Designer/Developer

    Re: Page not updating in Chrome

    Posted 9 years 10 months ago
    • Hmmm, yes that is wrong a comment in a .htaccess file should have # at the start of the line. // is a php comment line.

      Checking the link I gave you it does use # for comments? what was the server 500 in the apache error log with that code?

      Regards, Mark.
    • Last Edit: 9 years 10 months ago by MrT.
    • Please search forums before posting. Please make sure your post includes the version of the CMS you are using and a link to the problem. Annotations on screenshots can also be helpful to explain problems/goals. Please use the "secure" tab for confidential information.
    • Wicko's Avatar
    • Wicko
    • Elite Rocketeer
    • Posts: 884
    • Thanks: 8
    • Self employed Graphic designer with over 20 years of experience in branding, retail packaging and web design.

    Re: Page not updating in Chrome

    Posted 9 years 10 months ago
    • Tried this from stupid htaccess tricks

      # alternate method for file caching
      ExpiresActive On
      ExpiresDefault A604800 # 1 week
      ExpiresByType image/x-icon A2419200 # 1 month
      ExpiresByType application/x-javascript A2419200 # 1 month
      ExpiresByType text/css A2419200 # 1 month
      ExpiresByType text/html A300 # 5 minutes
      # disable caching for scripts and other dynamic files
      <FilesMatch "\.(pl|php|cgi|spl|scgi|fcgi)$">
      ExpiresActive Off
      </FilesMatch>

      and this cause a 500 error
    • This image is hidden for guests.
      Please log in or register to see it.

      Wicko Design is a multi-disciplined creative agency based in the South East of England. Specialising in web design & development, retail packaging and brand identity.

      https://www.wickodesign.com
    • MrT's Avatar
    • MrT
    • Preeminent Rocketeer
    • Posts: 101084
    • Thanks: 13482
    • Web Designer/Developer

    Re: Page not updating in Chrome

    Posted 9 years 10 months ago
    • I need to know what the apache error log says - it's not sufficient to just say it's a server500 - there will be more details in the log.

      Regards, Mark.
    • Please search forums before posting. Please make sure your post includes the version of the CMS you are using and a link to the problem. Annotations on screenshots can also be helpful to explain problems/goals. Please use the "secure" tab for confidential information.
    • Wicko's Avatar
    • Wicko
    • Elite Rocketeer
    • Posts: 884
    • Thanks: 8
    • Self employed Graphic designer with over 20 years of experience in branding, retail packaging and web design.

    Re: Page not updating in Chrome

    Posted 9 years 10 months ago
    • MrT wrote:
      I need to know what the apache error log says - it's not sufficient to just say it's a server500 - there will be more details in the log.

      Regards, Mark.
    • This image is hidden for guests.
      Please log in or register to see it.

      Wicko Design is a multi-disciplined creative agency based in the South East of England. Specialising in web design & development, retail packaging and brand identity.

      https://www.wickodesign.com

Time to create page: 0.056 seconds