I am following along with the ipfs tutorial in the docs. I creating a simple web page. I executed the following commands
ipfs daemon
mkdir simple-webpage
cd simple-webpage
nano index.html
cd ..
ipfs add -r simple-webpage/
When using nano index.html
I entered some basic HTML code. Then I used https://ipfs.io/ipfs/webpage-hash to visit the page. For the webpage-hash, I entered the hash the last command outputed for the directory. The link worked for me to visit the webpage. However, when trying this a second time with some different content I don't succeed and the outputed hash when running ipfs add -r second-page/
does not work to visit the page.
Why does ipfs add
fail when used a second time?