Coder Social home page Coder Social logo

github-badge-cache-buster's Introduction

github-badge-cache-buster

A small tool that uses curl to PURGE the github cache for badges displayed in README.md files

Unfortunately github caches badges ( on a server called camo.githubusercontent.com ) quite agressively. This leads to badge data being out of date a lot of the time.

Theoretically if the src badge image correctly sets.... Cache-Control: no-cache, no-store Expire: Mon, 01 Jan 1990 00:00:00 GMT Last-Modified: Mon, 01 Jan 2999 00:00:00 GMT and a unique to each request etag Etag: $UUID Everything should work just fine. However, many people find that not to be the case.

I found another possible workaround that calls for adding a dummy paramater to the URL of the badge. This may or may not work for all badge sources.

[tv-nightly-image]: https://jimtru1979.blob.core.windows.net/badges/DailyBuildStatus.svg?dummy=unused
[![Coverage Status](https://coveralls.io/repos/github/ledgersmb/LedgerSMB/badge.svg?branch=master)](https://coveralls.io/github/ledgersmb/LedgerSMB?branch=master&dummy=unused)

There is a large list of bugs open (and incorrectly closed) relating to this. The main issue is

  • #224 - Aggressive image caching breaks image badges

Some of the others are.....

  • #9 - GitHub Image Proxy breaking Nodei.co images in markdown
  • #15 - Badges do not update with GitHubs caching
  • #111 - can't find the URL for this one
  • #116 - can't find the URL for this one
  • #134 - Serve cached images upon request timeout
  • #137 - Travis badges seem to be broken
  • #218 - GitHub caching affecting my badge
  • #220 - Set Cache-Control or Expires on S3 assets
  • #257 - Badge caching
  • #414 - Incorrect coverage badge
  • #1970 - Build status image cached by GitHub
  • #3122 - Code Coverage Status Badge is cached
  • #3150 - Unix nightly badge is inaccurate
  • #6040 - fix coveralls badge issue in README
  • #17057 - Aggressive GitHub caching breaks Gitlab badge images.

github-badge-cache-buster's People

Contributors

sbts avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.