My static site served by pages is serving my readme.md

My repo is like 3 files. index.html, readme.md and changelog.md. looks like CF pages will serve my entire directory. So i went in and changed the output directory to be /output. and after moving it and resubmitting it still seems to show my readme. i thought maybe a cache issue, but my mobile device shows the same.
No description
7 Replies
coltonidle
coltonidleOP4d ago
if i move my index.html out of /output and redploy then redploy fails because it can't find /output. but once i put it back in... then it loads fine, but then I can also go to domain.com/readme.md lol
coltonidle
coltonidleOP4d ago
ooooh. any way to cache bust?
Erisa
Erisa4d ago
unfortunately no ironically the way to make it clear quicker is to not visit it
coltonidle
coltonidleOP4d ago
lmao. thats acutally kinda funny. But... understood! wish there was a way to bust it. rather not have my readme accidentally available to everyone. i guess i can actually overwrite the readme to just be blank actually
Erisa
Erisa4d ago
yeah
coltonidle
coltonidleOP4d ago
quick question. if im using cloudflare pages. and now my static html needs a single endpoint (for a contact us form on my index.html). can i just add a hono server to my app and host it on pages. or does this mean i need to look into cloudflare functions (or w/e the equivallent is in cloudflare?)

Did you find this page helpful?