astrofy icon indicating copy to clipboard operation
astrofy copied to clipboard

How to reset cache?

Open sergio-gn opened this issue 1 year ago • 4 comments

When I tried to change my profile image, I used the same name to replace it. On the code the image was replaced, but on the website it wasn't. I had to change the file name on the code and on the file. Is it possible to simply reset the cache? If not, where did the old image that I was seeing went?

sergio-gn avatar Sep 08 '23 10:09 sergio-gn

Hi @sergio-gn. This is strange, the image should have been replaced. It occurs to me that perhaps the service where you are hosting the page has a long caching time for images, if so this is reflected in the browser according to the default time that your service has defined.

Try refreshing your browser's cache (control + F5 in many)

manuelernestog avatar Sep 08 '23 13:09 manuelernestog

Hey, thanks for responding! Well, It's indeed strange, I've seen some cache files, that's why I opened the discussion here. This issue happened on development environment, normal VS Code + Local Host 3000. I tried to restart, Ctrl C to close the server on terminal, npm run dev again, and nothing.

sergio-gn avatar Sep 08 '23 14:09 sergio-gn

@sergio-gn What hosting service do you use?

GrungeElFz avatar Sep 11 '23 05:09 GrungeElFz

Base on this error and the other issue you opened, I think this should be a problem of your environment. Try updating to node 18 at least and remove your node_modules folder and try reinstalling the packages.

manuelernestog avatar Oct 05 '23 16:10 manuelernestog