You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Demo repo for testing/validating the behavior of GitHub's camo image-cache service.
3
2
4
-
This repo-stats card shows the number of open Issues.
3
+
## Demo repo for testing/validating the behavior of GitHub's image-caching service (camo)
5
4
6
-
Create a new issue in this repo and observe whether the change is reflected immediately.
5
+
### What is this?
7
6
7
+
The cards on this page are [`github-readme-stats`](https://github.com/anuraghazra/github-readme-stats/) repo cards (adapted on a [fork](https://github.com/hesreallyhim/github-readme-stats-plus/) created and hosted by hesreallyhim in order to show more repo stats). They show the number of open Issues in this repo.
8
+
9
+
### OK, so what?
10
+
11
+
Create a new Issue in this repo and observe whether the change is reflected immediately. GitHub uses a service called [camo](https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/about-anonymized-urls) for image caching and privacy/anonymization. That means that if you are serving an image with dynamic contentk 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.
12
+
13
+
## 1. Baseline (no cache-busting techniques applied)
14
+
15
+
### Usage
16
+
17
+
> [!tip]
18
+
> 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.
## 2. Nonce Query Parameter (image URL contains "nonce" query-parameter with random numerical value)
26
+
27
+
### Usage
28
+
29
+
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.
0 commit comments