Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upGitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
Describe the bug
When using an image URL like
https://bundlephobia.com/api/stats-image?name=convert&version=1.0.1&wide=truefor a version that isn't published the image returns a placeholder, but the placeholder gets cached. After the version is published the placeholder image stays cached.To Reproduce
Visit an image URL for a version that didn't exist at image generation time.
Example:
https://bundlephobia.com/api/stats-image?name=convert&version=1.1.0&wide=truebundlephobia/server/middlewares/generateImg.middleware.js
Lines 30 to 33 in a604672
Expected behavior
There should be a much shorter cache period for placeholder images.