Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dealing With Caching #37

Open
TurekBot opened this issue Mar 2, 2025 · 1 comment
Open

Dealing With Caching #37

TurekBot opened this issue Mar 2, 2025 · 1 comment

Comments

@TurekBot
Copy link

TurekBot commented Mar 2, 2025

Love your project! Thanks for all the effort you've put into it so far.

I was giving Suri with GitHub Pages a try when I noticed that if I change a link's URL (and then it builds and redeploys) that the short URL still goes to the old page. I'm hoping to find a way (or contribute a pull request) that lets you avoid this.

I tried the default as well as with JS redirects on, but both seem to be cached for that browser.

I'm relatively new to redirects in general, but it looks like we might be able to control it by adding a meta element that uses the cache-control header, something like

<META HTTP-EQUIV="cache-control" CONTENT="no-cache">

Do you have any advice on caching in the scenario where a short link's destination may change?

Thanks!

@jstayton
Copy link
Member

Hey Bradley – Ah, that's interesting. According to this, GitHub Pages caches everything for 10 minutes without any ability to change it.

I've never used that <meta> element myself, but it seems like it would do the trick. Did you manually try adding that to see if it worked?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants