Confusing caching at web hosting provider

 I kept on adding debugging code to a webpage, but nothing showed up.


I thought maybe the browser was not working.


But it was my hosting provider caching the little JavaScript file. When I clicked the 'Clear cache' button, everything worked.


Chrome's Lighthouse does complain about the response times from my cheap hosting plan with Hostinger. So caching is probably a good idea.


This problem always seems to happen to small CSS and JavaScript files.




Comments

Popular posts from this blog

How a CSS fish animation works

Selecting adjacent elements on :hover with CSS

Setting the 'class' of an SVG element