A web extension that shows if the current page was served by the Varnish cache.

Latest Version

Version
1.1
Update
November 4, 2020
Size
17KiB
Developer
Category
Users
87
Rating
3.66667 ★
Manifest Version
2
Web Store Status
Languages Support
English
See more
Permissions
WebRequest
WebNavigation
Http://*/*
Https://*/*
See more

Varnish Indicator Extension

An icon will advise if Varnish is being used, and if so, if the page was served from cache or not.

You should install this if you're a developer and want to quickly determine if a page was served from Varnish cache.

The icon has four status colors:

- Gray: the default, displayed when Varnish isn't detected.
- Blue: displays when Varnish is detected.
- Green: displays when the page was served from cache.
- Red: displays the when the page wasn't served from cache.

It looks for x-varnish and x-varnish-cache headers to detect Varnish. It can inspect both the x-varnish-cache (looking for hit and miss) and x-varnish (looking for two ids) headers to determine if a hit or miss took place.

The extension is open source and you can find more details at https://github.com/smebberson/varnish-indicator-extension.

Improvements and suggestions are welcomed :)

Updates

v1.1

- Adds support for duplicate varnish headers.
Read more

Source Manifest.json

{"update_url": "https://clients2.google.com/service/update2/crx", "author": "Scott Mebberson", "background": { "persistent": true, "scripts": ["background.js"] }, "description": "A web extension that shows if the current page was served by the Varnish cache.", "homepage_url": "https://github.com/smebberson/varnish-indicator-extension", "icons": { "16": "img/icon_small.png", "48": "img/icon_medium.png", "128": "img/icon_large.png" }, "manifest_version": 2, "name": "Varnish Indicator", "page_action": { "default_icon": "img/grey.png" }, "permissions": ["webRequest", "webNavigation", "http://*/*", "https://*/*"], "version": "1.1"}
Read more