360 Secure SkillHub
360 安全技能中心

Varnish

该 Skill 为 Varnish HTTP 反向代理缓存提供参考文档,内容涵盖架构概览、VCL 缓存规则与后端负载均衡配置、varnishstat/varnishlog 等运维工具、purge/ban 内容清理、ESI 与 WordPress 集成,以及缓存方案对比与安装说明;仅输出文字说明,不包含实际部署或配置生成。

bytesagain
bytesagain
热度 19.73
最近更新 2026-03-25 15:21:55
分类:知识依赖:代码执行应用场景:概念解释 / DevOps

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add varnish
Metadata
name
varnish
description
HTTP accelerator and reverse proxy cache with VCL configuration language. Use when caching dynamic web pages, writing VCL rules for cache control, purging stale content, load balancing backends, or speeding up WordPress and high-traffic sites.
version
1.0.0
author
BytesAgain
homepage
https://bytesagain.com
source
https://github.com/bytesagain/ai-skills
tags
["varnish","cache","http","reverse-proxy","performance","vcl"]

Varnish Reference

HTTP accelerator and caching reverse proxy that serves cached content from memory in sub-millisecond response times. Varnish uses VCL (Varnish Configuration Language), a domain-specific language that compiles to C for maximum performance.

When to Use

  • Accelerating dynamic websites by caching responses in RAM
  • Writing VCL rules for fine-grained cache control and routing
  • Purging or banning cached content by URL or pattern
  • Load balancing across multiple backend servers with health checks
  • Implementing ESI (Edge Side Includes) for partial page caching
  • Optimizing WordPress or CMS performance at the edge

Commands

Command Description
intro Architecture overview, Varnish vs Nginx caching vs CDN comparison, installation
vcl VCL configuration language, caching rules, backend setup, load balancing, grace mode
operations CLI tools (varnishstat/varnishlog), purge and ban patterns, ESI, WordPress integration

Requirements

  • No external dependencies — outputs reference documentation only
  • No API keys required

Feedback

https://bytesagain.com/feedback/