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

Purge request tool not purging the cache of my file in github #18502

Open
BlurryFlurry opened this issue Jun 13, 2023 · 4 comments
Open

Purge request tool not purging the cache of my file in github #18502

BlurryFlurry opened this issue Jun 13, 2023 · 4 comments

Comments

@BlurryFlurry
Copy link

BlurryFlurry commented Jun 13, 2023

Description

https://cdn.jsdelivr.net/gh/BlurryFlurry/dig-my-tunnel@main/install.sh
Trying to purge the cache of this 'install.sh' file url in my github repo using purge tool and it gives the success status.
rIXbrCW

But file is stil in cacheded version.

Expected behavior:
Afer using purge tool,
CDN Delivers the latest version of
https://cdn.jsdelivr.net/gh/BlurryFlurry/dig-my-tunnel@main/install.sh

which is: https://raw.githubusercontent.com/BlurryFlurry/dig-my-tunnel/main/install.sh

Actual behavior:
CDN Delivers the old version of install.sh

@jcubic
Copy link
Contributor

jcubic commented May 21, 2024

I have the same issue:

https://cdn.jsdelivr.net/gh/jcubic/gaiman/umd.min.js

I just created a new version but jsDelivr is serving file from 2022

@MartinKolarik
Copy link
Member

I have the same issue:

https://cdn.jsdelivr.net/gh/jcubic/gaiman/umd.min.js

I just created a new version but jsDelivr is serving file from 2022

We're serving the most recent release in this case: https://github.com/jcubic/gaiman/tags

If you want to get the most recent branch file, add @master to the link.

@jcubic
Copy link
Contributor

jcubic commented May 22, 2024

Oh, so the gh without any @ use tags for cache invalidation?

This is what I did, I added @master to the URL, but I often use it as a hack if that don't help I keep adding commit hash when I change something.

@MartinKolarik
Copy link
Member

Not just for cache invalidation, the tags simply have higher priority than commits, so if you have tags, we serve those unless you explicitly request a branch/commit.

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

3 participants