Skip to content

Commit 71eabbf

Browse files
authored
Update README with GitHub stats badge and nonce usage
Added markdown formatting for GitHub stats badge and nonce example.
1 parent ff86a5e commit 71eabbf

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

README.md

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,12 @@ GitHub uses a service called [camo](https://docs.github.com/en/authentication/ke
1717
> [!tip]
1818
> 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.
1919
20-
<div id="baseline">
20+
```markdown
21+
[![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)
22+
```
23+
24+
<!-- BASELINE -->
2125
[![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)
22-
</div>
2326

2427

2528
## 2. Nonce Query Parameter (image URL contains "nonce" query-parameter with random numerical value)
@@ -29,8 +32,8 @@ GitHub uses a service called [camo](https://docs.github.com/en/authentication/ke
2932
> [!tip]
3033
> 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.
3134
32-
<div id="baseline">
35+
<!-- NONCE -->
3336
[![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)
34-
</div>
37+
3538

3639

0 commit comments

Comments
 (0)