Skip to content

Commit b9e43fa

Browse files
authored
Update README with nonce query parameter example
Added nonce query parameter example for cache busting.
1 parent 71eabbf commit b9e43fa

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

README.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ GitHub uses a service called [camo](https://docs.github.com/en/authentication/ke
2323

2424
<!-- BASELINE -->
2525
[![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)
26-
26+
<!-- BASELINE-END -->
2727

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

@@ -33,7 +33,12 @@ GitHub uses a service called [camo](https://docs.github.com/en/authentication/ke
3333
> 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.
3434
3535
<!-- NONCE -->
36+
```markdown
3637
[![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=123456)](https://github.com/hesreallyhim)
38+
```
3739

3840

41+
[![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=123456)](https://github.com/hesreallyhim)
42+
<!-- NONCE-END -->
43+
3944

0 commit comments

Comments
 (0)