From 3dd3aac4f766d738d97787cec7220cce715eb14b Mon Sep 17 00:00:00 2001 From: aditeyabaral Date: Mon, 14 Sep 2026 22:08:39 -0500 Subject: [PATCH 1/2] docs: cut the version badge cache to the shortest shields allows MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The badges lag a deploy by far longer than intended. Two caches compound, each at the 600 seconds this set: shields serves `max-age=600` from a CDN that caches per edge, and GitHub's camo proxy then mirrors that max-age on top. So a badge can be up to twenty minutes stale, and two people can see different versions at the same moment depending on which shields edge they reach. Measured while diagnosing: camo fetched fresh (`x-cache: MISS`, `age: 0`) and was handed `v4.4.0` by shields, two releases behind, at a moment a direct request returned `v4.6.0`. 120 is the floor — shields clamps anything lower, serving `max-age=120` for a requested 30 or 60 alike. That takes the worst case from roughly twenty minutes to roughly four. It cannot be real time. GitHub serves every external image through a caching proxy, so a README badge is always a cached copy of a cached copy. Co-Authored-By: Claude Opus 5 Claude-Session: https://claude.ai/code/session_01VU7YUhP71KSsotWQ1H7CRH --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 1add79a..dc8b7de 100644 --- a/README.md +++ b/README.md @@ -16,8 +16,8 @@ returns the user's profile information. No personal data is stored. ## PESUAuth LIVE Deployment -[![Production API version](https://img.shields.io/badge/dynamic/json?url=https%3A%2F%2Fpesu-auth.onrender.com%2Fopenapi.json&query=%24.info.version&label=production&color=blue&prefix=v&cacheSeconds=600)](https://pesu-auth.onrender.com/) -[![Staging API version](https://img.shields.io/badge/dynamic/json?url=https%3A%2F%2Fpesu-auth-dev.onrender.com%2Fopenapi.json&query=%24.info.version&label=staging&color=orange&prefix=v&cacheSeconds=600)](https://pesu-auth-dev.onrender.com/) +[![Production API version](https://img.shields.io/badge/dynamic/json?url=https%3A%2F%2Fpesu-auth.onrender.com%2Fopenapi.json&query=%24.info.version&label=production&color=blue&prefix=v&cacheSeconds=120)](https://pesu-auth.onrender.com/) +[![Staging API version](https://img.shields.io/badge/dynamic/json?url=https%3A%2F%2Fpesu-auth-dev.onrender.com%2Fopenapi.json&query=%24.info.version&label=staging&color=orange&prefix=v&cacheSeconds=120)](https://pesu-auth-dev.onrender.com/) - You can access the PESUAuth API endpoints [here](https://pesu-auth.onrender.com/). - You can view the health status of the API on the health check pages for From 631522c1ebcdc5f05912672c46a5f6989dc25fd9 Mon Sep 17 00:00:00 2001 From: aditeyabaral Date: Mon, 14 Sep 2026 22:08:39 -0500 Subject: [PATCH 2/2] chore: bump version to 4.7.0 Co-Authored-By: Claude Opus 5 Claude-Session: https://claude.ai/code/session_01VU7YUhP71KSsotWQ1H7CRH --- pyproject.toml | 2 +- uv.lock | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 0296f02..5f03a31 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "pesu-auth" -version = "4.6.0" +version = "4.7.0" description = "A simple API to authenticate PESU credentials using PESU Academy." readme = "README.md" requires-python = ">=3.14" diff --git a/uv.lock b/uv.lock index 00403ab..65dc890 100644 --- a/uv.lock +++ b/uv.lock @@ -630,7 +630,7 @@ wheels = [ [[package]] name = "pesu-auth" -version = "4.6.0" +version = "4.7.0" source = { editable = "." } dependencies = [ { name = "fastapi" },