Firefox 浏览器附加组件
  • 扩展
  • 主题
    • 适用于 Firefox
    • 字典和语言包
登录
Cache even Longer 预览

Cache even Longer 作者: Eric

Extends how long Firefox caches static files, with configurable lifetimes, a per-site popup, stale-while-revalidate, and safety rules for private or uncacheable responses. A renamed fork of Cache Longer 1.0 by Rimu Atkinson.

0(0 条评价)0(0 条评价)
下载 Firefox 并安装扩展
下载文件

扩展元数据

屏幕截图
关于此扩展
Cache even Longer keeps static files in Firefox’s HTTP cache for longer, so
repeated visits load faster and use less bandwidth. It is a renamed,
safety-focused fork of the original Cache Longer 1.0 (MIT, by Rimu Atkinson).

Unlike a blanket “cache everything” extension, it only extends responses that
are safe to extend, and leaves everything else exactly as the server sent it.

WHY A RENAMED FORK
The 1.0 add-on forced a six-month public lifetime onto every matching response.
This fork keeps the same goal but adds a configurable policy and safety limits:
private responses stay private, explicit no-store instructions are respected by
default, and errors or partial responses are never cached for months. It is
renamed so the two add-ons are not confused.

WHAT IT DOES
- Sets a configurable freshness lifetime (1–3650 days; default 180) for images,
stylesheets, scripts, and fonts.
- Optionally includes media, XHR/fetch, and other subresources.
- Merges Cache-Control instead of replacing it, and adds a matching Expires
header.
- Optionally adds stale-while-revalidate, so an expired file can be shown
immediately while Firefox refreshes it in the background.
- Optionally limits changes to fingerprinted URLs: files whose names contain a
content hash or version query.
- Accounts for the Age header, so time already spent in a CDN cache does not
shorten the configured lifetime.
- Never adds “public”; keeps private, immutable, s-maxage, no-transform and
other directives. must-revalidate is kept unless the optional stale window
is enabled, in which case it must be dropped for Firefox to use that window.
- “Never shorten” is on by default, so responses that already ask for a longer
lifetime are left alone.

SAFETY RULES
- Respects Cache-Control: no-store by default.
- Skips responses that set cookies by default.
- Skips Vary: * responses.
- Only touches 200, 203 and 304 responses to GET/HEAD requests.
- Never changes the page document, frames, redirects, 204, 206, errors or
non-HTTP URLs.
- Never rewrites a response already served from cache.

CONTROL
- The toolbar popup shows whether the current site is active or excluded, with
one-click exclude/include and a quick lifetime selector.
- Quick profiles: Safe (30 days, fingerprinted only), Balanced (180 days with a
7-day stale window) and Aggressive (365 days with a 30-day stale window and
media included).
- Exclude hosts, subdomains, paths, or URL prefixes with wildcard patterns.
- Export the exclusion list as a dated plain-text file and import/merge another
list without deleting existing patterns.
- Pause the add-on without removing it.
- Optional debug logging shows every allow/skip decision in the extension
console.

FORCE REFRESH
The add-on never adds immutable and never modifies request headers or reload
flags. Shift+Reload (Ctrl+Shift+R / Cmd+Shift+R) still bypasses the HTTP cache
completely. A service worker can still serve from its own cache; use DevTools →
Application → Service Workers → “Bypass for network” for those sites.

PRIVACY
No telemetry, no analytics, no network requests, no remote code. Settings are
stored locally with browser.storage.local. The manifest declares
data_collection_permissions.required = ["none"].

PERMISSIONS
storage stores your settings. webRequest, webRequestBlocking, and host
permissions for http/https are required to inspect and replace response
headers. The popup reads the active tab URL through those host permissions; it
does not request the tabs permission. The add-on has no content scripts and does
not read page content.

COMPATIBILITY
Firefox 115+ on desktop. Firefox for Android is not declared or tested.

GOOD TO KNOW
The HTTP cache is a hint: Firefox may evict entries early, and files already in
the cache keep their stored headers until they expire or are re-fetched.
Service-worker caches are separate and are not modified. Stale-while-revalidate
can show content that is a little out of date during its configured window; turn
it off if that is not acceptable. The add-on does not cache whole pages.

LICENSE
MIT. Cache Longer was originally created by Rimu Atkinson; this renamed fork is
Cache even Longer. The MIT notice is included in the package.
评分 0(1 位用户)
登录以评价此扩展
目前尚无评分

已保存星级评分

5
0
4
0
3
0
2
0
1
0
尚无评价
权限与数据

必要权限:

  • 访问您在所有网站的数据

收集的数据:

  • 开发者称此扩展无需收集数据。
详细了解
更多信息
附加组件链接
  • 用户支持网站
  • 复制附加组件 ID
版本
2.1.0
大小
46.03 KB
上次更新
22 天前 (2026年11月9日)
相关分类
  • 其他
许可证
MIT 许可证
版本历史
  • 查看所有版本
添加到收藏集
举报此附加组件
转至 Mozilla 主页

附加组件

  • 关于
  • Firefox 附加组件博客
  • 扩展工坊
  • 开发者中心
  • 开发者政策
  • 社区博客
  • 论坛
  • 报告缺陷
  • 评价指南

下载

  • Download Firefox
  • Windows
  • macOS
  • iOS
  • Android
  • Linux
  • All

最新版本

  • Nightly
  • Beta

商用版 Firefox

  • Enterprise

社区

  • Connect
  • Contribute
  • Developer

关注

  • Instagram
  • YouTube
  • TikTok
  • Bluesky
  • Podcast
  • 隐私
  • Cookie
  • 法律

除非另有注明,否则本网站上的内容可按知识共享 署名-相同方式共享 3.0 或更新版本使用。