An open API service indexing awesome lists of open source software.

https://github.com/sinchang/badge-no-cache

Serve badge image on Readme without caching
https://github.com/sinchang/badge-no-cache

badge producthunt

Last synced: 4 months ago
JSON representation

Serve badge image on Readme without caching

Awesome Lists containing this project

README

          

# badge-no-cache

## Why

If you add an image to GitHub, the URL of the image will be modified and the content of the image will be cached, it would cause data on the badge image doesn't update immediately.

## How

Update badge url as the below format:

```
https://badge-no-cache.sinchang.workers.dev?${badge url}
```

## Example

#### Default

Slidev - Presentation Slides for Developers | Product Hunt

#### Using `badge-no-cache`

Slidev - Presentation Slides for Developers | Product Hunt

## Who using it

If you use this approach, please let me know.

## References

- https://docs.github.com/en/github/authenticating-to-github/about-anonymized-image-urls