PHPackages                             putyourlightson/craft-clear-browser-cache - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. putyourlightson/craft-clear-browser-cache

ActiveYii2-extension[Utility &amp; Helpers](/categories/utility)

putyourlightson/craft-clear-browser-cache
=========================================

Clears the local browser cache once per unique visitor.

1.0.0(1y ago)01.3k↓33.3%mitPHPPHP ^8.0

Since Aug 29Pushed 1y ago1 watchersCompare

[ Source](https://github.com/putyourlightson/craft-clear-browser-cache)[ Packagist](https://packagist.org/packages/putyourlightson/craft-clear-browser-cache)[ RSS](/packages/putyourlightson-craft-clear-browser-cache/feed)WikiDiscussions develop Synced 1mo ago

READMEChangelogDependencies (4)Versions (2)Used By (0)

Clear Browser Cache Module for Craft CMS
========================================

[](#clear-browser-cache-module-for-craft-cms)

This module clears the local browser cache once per unique visitor. It does so by send a `Clear-Site-Data` response header with a value of `"cache"`, and sets a cookie called `BrowserCacheCleared` to prevent the header from being sent again.

To learn the reason for its existence, [read this article →](https://putyourlightson.com/articles/critical-update-for-a-blitz-blunder)

Requirements
------------

[](#requirements)

This plugin requires [Craft CMS](https://craftcms.com/) 4.0.0 or later, or 5.0.0 or later.

Installation
------------

[](#installation)

Install this module via composer.

```
composer require putyourlightson/craft-clear-browser-cache
```

Once installed, the module self-bootstraps and does not require any further setup.

Configuration
-------------

[](#configuration)

The module is configured to run only until a cut-off date, which is set to `2026-01-01` by default. After that date, the module will have no effect. This value can be overridden by setting a `CLEAR_BROWSER_CACHE_CUTOFF_DATE` environment variable in your `.env` file.

```
CLEAR_BROWSER_CACHE_CUTOFF_DATE=2025-09-01
```

---

Created by [PutYourLightsOn](https://putyourlightson.com/).

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance34

Infrequent updates — may be unmaintained

Popularity19

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity44

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

619d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/59428c6783d02d74c8778d9953ba84c35d3877ece53f5eb393689c052a9c97e4?d=identicon)[putyourlightson](/maintainers/putyourlightson)

---

Top Contributors

[![bencroker](https://avatars.githubusercontent.com/u/57572400?v=4)](https://github.com/bencroker "bencroker (7 commits)")

### Embed Badge

![Health badge](/badges/putyourlightson-craft-clear-browser-cache/health.svg)

```
[![Health](https://phpackages.com/badges/putyourlightson-craft-clear-browser-cache/health.svg)](https://phpackages.com/packages/putyourlightson-craft-clear-browser-cache)
```

###  Alternatives

[spicyweb/craft-neo

A Matrix-like field type with block hierarchy

395798.1k10](/packages/spicyweb-craft-neo)[verbb/navigation

Create navigation menus for your site.

90683.7k17](/packages/verbb-navigation)[verbb/formie

The most user-friendly forms plugin for Craft.

101372.9k40](/packages/verbb-formie)[solspace/craft-freeform

The most flexible and user-friendly form building plugin!

52664.9k12](/packages/solspace-craft-freeform)[verbb/comments

Add comments to your site.

13753.1k](/packages/verbb-comments)[craftcms/ckeditor

Edit rich text content in Craft CMS using CKEditor.

48359.1k52](/packages/craftcms-ckeditor)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
