Yesterday I hosted a multi page website on IPFS with reference to this tutorial link.
When using the basic ipfs.io-gateway, the page loaded at first. When I tried it again after sometime It was loading indefinitely (i.e. the page didn’t load). Then after an hour the page loaded again even though I didn’t make any changes.
(Note: I tried loading the page 2 or 3 times, sometimes it would just load indefinitely and sometimes the gateway would time out after a bit( 504 Gateway Timeout))
Afterwards I published the multi-page website to IPNS (gateway.ipfs.io/ipns/). I had a similar issue here too. It loaded indefinitely (wasn’t loading the page) and then after sometime (like an hour) when I checked, the page was loading just fine.
Why does the page load sometimes and not other times? What can be done about this?
If this is the expected behaviour, won’t it be an issue to host websites and share it to users?