File tree Expand file tree Collapse file tree 2 files changed +12
-5
lines changed Expand file tree Collapse file tree 2 files changed +12
-5
lines changed Original file line number Diff line number Diff line change @@ -20,12 +20,17 @@ Add to your GitHub profile README:
20
20
21
21
Replace ` your-username ` with your GitHub username.
22
22
23
+ ** Note** : GitHub caches images. To see updated counts immediately, add a version parameter:
24
+ ``` markdown
25
+ 
26
+ ```
27
+
23
28
### Live Examples:
24
29
25
- ![ Flat] ( https://githitbox.duckdns.org/badge/octocat?v=1 )
26
- ![ Plastic] ( https://githitbox.duckdns.org/badge/octocat?style=plastic&v=1 )
27
- ![ Counter] ( https://githitbox.duckdns.org/badge/octocat?style=counter&v=1 )
28
- ![ For-the-badge] ( https://githitbox.duckdns.org/badge/octocat?style=for-the-badge&v=1 )
30
+ ![ Flat] ( https://githitbox.duckdns.org/badge/octocat?v=2 )
31
+ ![ Plastic] ( https://githitbox.duckdns.org/badge/octocat?style=plastic&v=2 )
32
+ ![ Counter] ( https://githitbox.duckdns.org/badge/octocat?style=counter&v=2 )
33
+ ![ For-the-badge] ( https://githitbox.duckdns.org/badge/octocat?style=for-the-badge&v=2 )
29
34
30
35
## 🛠️ Local Development
31
36
Original file line number Diff line number Diff line change @@ -238,7 +238,9 @@ async def get_profile_badge(
238
238
io .BytesIO (img_bytes .read ()),
239
239
media_type = "image/png" ,
240
240
headers = {
241
- "Cache-Control" : "public, max-age=60" ,
241
+ "Cache-Control" : "no-cache, no-store, must-revalidate" ,
242
+ "Pragma" : "no-cache" ,
243
+ "Expires" : "0" ,
242
244
"Content-Type" : "image/png" ,
243
245
"Access-Control-Allow-Origin" : "*" ,
244
246
},
You can’t perform that action at this time.
0 commit comments