I developed a website. It has been hosted in google cloud platform.I was required to change the banner of picture of the home page of website. I changed in server but It showed previous banner picture so I cleared the cache by following command

sudo touch /var/cache/mod_pagespeed/cache.flush

Subsequently I refresh the web page then the picture was changed as new picture. But after few hours or when i click another page and again come to this page The previous(old) picture again replaced the new picture. What can I do to solve this problem and what is the reason?

  • are you using a loadbalancer in front or you are serving directly with a webserver? – saviour123 Sep 21 '19 at 6:49
  • which webserver, have you switch your browser to see if your browser is not serving you cache? – saviour123 Sep 21 '19 at 6:49
  • I am using Google cloud platform – user541559 Sep 21 '19 at 8:55
  • can you please provide more information on the platform- - server type n version, webserver, app? – saviour123 Sep 21 '19 at 9:04
  • remind to flzsh the Browser cache also – djdomi Sep 21 '19 at 11:32

I cleared the cache by following command

sudo touch /var/cache/mod_pagespeed/cache.flush

Are you sure your banner is cached in /var/cache/mod_pagespeed ?

Based on Linux Foundation documentation [1], the cached files can be deleted without data loss.

At this point, just;

rm -rf /var/cache/*
| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.