readme-visitor-badge
一个统计README页面被打开次数的badge生成服务,适用于任何可以显示svg的markdown/issue/html页面。每次页面打开时,浏览器会向服务器发送请求,增加访问计数并返回最新的svg。
• Copy the embed code to showcase this product on your website
• Share on X to spread the word about this amazing tool
一个统计README页面被打开次数的badge生成服务,适用于任何可以显示svg的markdown/issue/html页面。每次页面打开时,浏览器会向服务器发送请求,增加访问计数并返回最新的svg。
• Copy the embed code to showcase this product on your website
• Share on X to spread the word about this amazing tool
https://camo.githubusercontent.com/xxxxxxxxxxxxxxxxxxxxxxxxx/yyyyyyyyyyyyyyy/zzzzzzzzzzzzzzzz.jpg的网址, 如下:
而camo的服务器会对被代理的图片进行缓存, 使得当第一次刷新页面时, camo会像badge生成服务发起请求, camo记录访问次数为1, 之后再次刷新页面, camo会缓存这个badge图片, 从而无法达到我们想要的效果.经过一番搜索和研究发现, 在badge生成服务返回的http响应的header中, 需要动一些小手脚:1. Cache-Control设置Cache-Control的内容为no-cache,max-age=0, 告诉camo服务器在使用缓存之前进行验证2. Expires这里我手动将资源的过期时间设置成了当前时间减去10分钟这样的话, 当用户打开README页面之后, camo服务器在返回缓存内容之前, 会像源服务器发起请求, badge生成服务收到请求之后会将访问量加1并生成相应的svg内容同时携带以上2个header信息返回.而正是由于这两个header的设置, camo服务器发现缓存的资源在10分钟之前已经过期, 于是就将最新的svg返回给了浏览器.# 使用方法在你的README里面, 添加一个图片:markdown如 就会统计当前issue的总访客数量, 如下图, 刷新下这个页面试试?A code-free online store builder to turn views into revenue. Sell digital products, subscriptions, and merch, without fees or hassle.
Convert videos into awesome blog posts.
Fast Image AI instantly transforms your photos into stunning styles like Ghibli, Sketch, and Pixar. Effortlessly control image elements and create amazing effects with just one click.
AI-powered tool that transforms casual photos into professional LinkedIn headshots instantly. No photographer needed—just upload and download.
Crevas unifies Veo 3, Sora 2, Nano Banana and more into one intuitive canvas — so filmmakers can script, prompt, and generate cinematic stories without switching tools or losing consistency.
AI Foto Edit - Text to Image & Image Edit