附加组件

HTTP 缓存策略模拟器

HTTP cache policy simulator

可视化新鲜、陈旧、过期响应行为

实时预览

提示词正文

Build an HTTP cache policy simulator with Tailwind CSS: controls for Cache-Control max-age, stale-while-revalidate and s-maxages plus an ETag, and a timeline that plays out successive requests showing each response as fresh (green, served from cache), stale (amber, served while revalidating) or expired (red, must revalidate) with the header values responsible called out. Include a step-through mode with prev/next request buttons, a log panel narrating what the browser does at each step, and preset scenarios (static asset, API JSON, personalized page) to load quickly.

提示词保持英文原文——直接粘贴进 Claude、Cursor、v0 或任何 AI 编程工具即可使用。

怎么用

max-age/swr/s-maxage/ETag 控件;时间线播放逐次请求的新鲜/陈旧/过期状态;预设场景。

同类提示词 · 附加组件

© 2026 Genisource Vibe · 提示词详情