A simple Google Chrome extension that shows if a page being served up via a Varnish web accelerator is fresh or not.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
img
.editorconfig
.gitattributes
.gitignore
README.md
background.js
manifest.json

README.md

Varnish Inspector

A simple Google Chrome extension that shows if a page being served up via a Varnish web accelerator is fresh or not.

Screenshots

Currently this addon consists of a single toolbar button that changes state based on detected HTTP headers.

Default

The button icon appears gray/disabled when no special HTTP headers are detected.

Button when inactive

Varnish detected

The button icon becomes Varnish-blue when the HTTP header Via is detected containing the string "varnish":

Button when active

Cache miss

The button becomes red-ish in color when the HTTP header X-Cache is detected containing the string "MISS":

Button when cache miss

Cache hit

The button becomes green in color when the HTTP header X-Cache is detected containing the string "HIT":

Button when cache hit

The label text is updated to reflect the number of cache hits if the HTTP header X-Cache-Hits is present.