Skip to content

Demo repo for testing/validating different strategies for busting the cache and refreshing images on GitHub README

License

Notifications You must be signed in to change notification settings

hesreallyhim/github-image-cache-bust

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 

Repository files navigation

github-image-cache-bust

The cache has been busted: 0 times

Demo repo for testing/validating the behavior of GitHub's image-caching service (camo)

What is this?

The cards on this page are github-readme-stats repo cards (adapted on a fork created and hosted by hesreallyhim in order to show more repo stats). They show the number of open Issues in this repo.

OK, so what?

GitHub uses a service called camo for image caching and privacy/anonymization. That means that if you are serving an image with dynamic content1, changes to the content may not be reflected right away. This repo illustrates different approaches to cache-busting so you can see for yourself what works or does not work at the current point in time.

1. Baseline (no cache-busting techniques applied)

Usage

Tip

Create a new Issue in the repo. Do not include the word "nonce" anywhere in the body. See if and when the count on the card is actually updated.

[![test-github-cache-bust](https://github-readme-stats-plus-theta.vercel.app/api/pin?username=hesreallyhim&repo=test-github-cache-bust&show_issues=true)](https://github.com/hesreallyhim)

test-github-cache-bust

Cache-busting status | Last Issue created at: 2025-11-16 02:17:45 UTC

2. Nonce Query Parameter (image URL contains "nonce" query-parameter with random numerical value)

Usage

Tip

The image URL below contains a query parameter nonce with a random number value. Create an Issue in this repository and write the word "nonce" somewhere in the body. This will trigger a GitHub Action that changes the query parameter value to some other "random" number. This is used to test whether changing query parameters is sufficient to bust the cache and refresh the image content.

[![test-github-cache-bust](https://github-readme-stats-plus-theta.vercel.app/api/pin?username=hesreallyhim&repo=test-github-cache-bust&show_issues=true&nonce=000812)](https://github.com/hesreallyhim)

test-github-cache-bust

Cache-busting status | Current nonce: nonce=000812 | Last updated: 2025-11-16 02:17:45 UTC



Thanks to anuraghazra, a pioneer of README-engineering, and maintainer of github-readme-stats.

Footnotes

  1. Nowadays, an "image with dynamic content" is usuaully known as a "movie" (or, if you haven't heard of that, it's sort of like a "TikTok" but not as hilarious)... that's not really what I meant though - I should have said something like "an image that's fetched from a URL that points to a server that changes the contents of the image that being served dynamically." As you can probably tell, I've read many many long books (or, if you haven't heard of that, it's sort of like a "post" but not as profound).

About

Demo repo for testing/validating different strategies for busting the cache and refreshing images on GitHub README

Topics

Resources

License

Security policy

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project

 

Packages

No packages published

Contributors 3

  •  
  •  
  •