[{"data":1,"prerenderedAt":1368},["ShallowReactive",2],{"navigation_docs":3,"-guide-publishing-caches":613,"-guide-publishing-caches-surround":1365},[4,39,101,378,540,562,584,606],{"title":5,"icon":6,"path":7,"stem":8,"children":9,"page":38},"Start","i-lucide-rocket","\u002Fstart","1.start",[10,14,18,22,26,30,34],{"title":11,"path":12,"stem":13},"Our approach","\u002Fstart\u002Four-approach","1.start\u002F0.our-approach",{"title":15,"path":16,"stem":17},"Introduction","\u002Fstart\u002Fintroduction","1.start\u002F1.introduction",{"title":19,"path":20,"stem":21},"Concepts","\u002Fstart\u002Fconcepts","1.start\u002F2.concepts",{"title":23,"path":24,"stem":25},"Glossary","\u002Fstart\u002Fglossary","1.start\u002F3.glossary",{"title":27,"path":28,"stem":29},"Try it locally","\u002Fstart\u002Ftry-it-locally","1.start\u002F4.try-it-locally",{"title":31,"path":32,"stem":33},"Features","\u002Fstart\u002Ffeatures","1.start\u002F5.features",{"title":35,"path":36,"stem":37},"Questions","\u002Fstart\u002Ffaq","1.start\u002F6.faq",false,{"title":40,"icon":41,"path":42,"stem":43,"children":44,"page":38},"Run SHADE","i-lucide-server","\u002Frun","2.run",[45,49,53,57,61,65,69,73,77,81,85,89,93,97],{"title":46,"path":47,"stem":48},"Setting up an instance (Coolify)","\u002Frun\u002Fcoolify","2.run\u002F1.coolify",{"title":50,"path":51,"stem":52},"Console commands","\u002Frun\u002Fconsole","2.run\u002F10.console",{"title":54,"path":55,"stem":56},"Rotating APP_SECRET","\u002Frun\u002Frotating-app-secret","2.run\u002F11.rotating-app-secret",{"title":58,"path":59,"stem":60},"Checking an instance","\u002Frun\u002Fdoctor","2.run\u002F12.doctor",{"title":62,"path":63,"stem":64},"Self-hosting by hand","\u002Frun\u002Fown-server-by-hand","2.run\u002F13.own-server-by-hand",{"title":66,"path":67,"stem":68},"NixOS (experimental)","\u002Frun\u002Fnixos","2.run\u002F14.nixos",{"title":70,"path":71,"stem":72},"Self-hosting without Coolify","\u002Frun\u002Fown-server","2.run\u002F2.own-server",{"title":74,"path":75,"stem":76},"Hosting the site on a static host","\u002Frun\u002Fstatic-hosts","2.run\u002F3.static-hosts",{"title":78,"path":79,"stem":80},"Licence","\u002Frun\u002Flicence","2.run\u002F4.licence",{"title":82,"path":83,"stem":84},"Updating and backups","\u002Frun\u002Fupdating-and-backups","2.run\u002F5.updating-and-backups",{"title":86,"path":87,"stem":88},"Troubleshooting","\u002Frun\u002Ftroubleshooting","2.run\u002F6.troubleshooting",{"title":90,"path":91,"stem":92},"Logs, request ids, traces and metrics","\u002Frun\u002Flogs","2.run\u002F7.logs",{"title":94,"path":95,"stem":96},"Maintenance mode","\u002Frun\u002Fmaintenance-mode","2.run\u002F8.maintenance-mode",{"title":98,"path":99,"stem":100},"Usage limits","\u002Frun\u002Fusage-limits","2.run\u002F9.usage-limits",{"title":102,"icon":103,"path":104,"stem":105,"children":106},"Guide","i-lucide-book-open","\u002Fguide","3.guide",[107,109,147,192,210,280,310,364],{"title":102,"path":104,"stem":108},"3.guide\u002Findex",{"title":110,"icon":111,"path":112,"stem":113,"children":114,"page":38},"Content","i-lucide-file-text","\u002Fguide\u002Fcontent","3.guide\u002F1.content",[115,119,123,127,131,135,139,143],{"title":116,"path":117,"stem":118},"Collections and entries","\u002Fguide\u002Fcontent\u002Fcollections","3.guide\u002F1.content\u002F1.collections",{"title":120,"path":121,"stem":122},"Field types","\u002Fguide\u002Fcontent\u002Ffields","3.guide\u002F1.content\u002F2.fields",{"title":124,"path":125,"stem":126},"Drafts, publishing and version history","\u002Fguide\u002Fcontent\u002Fversions","3.guide\u002F1.content\u002F3.versions",{"title":128,"path":129,"stem":130},"Languages","\u002Fguide\u002Fcontent\u002Flanguages","3.guide\u002F1.content\u002F4.languages",{"title":132,"path":133,"stem":134},"Data sources","\u002Fguide\u002Fcontent\u002Fdata-sources","3.guide\u002F1.content\u002F5.data-sources",{"title":136,"path":137,"stem":138},"Media","\u002Fguide\u002Fcontent\u002Fmedia","3.guide\u002F1.content\u002F6.media",{"title":140,"path":141,"stem":142},"Search","\u002Fguide\u002Fcontent\u002Fsearch","3.guide\u002F1.content\u002F7.search",{"title":144,"path":145,"stem":146},"Trash","\u002Fguide\u002Fcontent\u002Ftrash","3.guide\u002F1.content\u002F8.trash",{"title":148,"icon":149,"path":150,"stem":151,"children":152,"page":38},"Website","i-lucide-globe","\u002Fguide\u002Fwebsite","3.guide\u002F2.website",[153,156,160,164,168,172,176,180,184,188],{"title":148,"path":154,"stem":155},"\u002Fguide\u002Fwebsite\u002Fwebsite","3.guide\u002F2.website\u002F1.website",{"title":157,"path":158,"stem":159},"Scroll scenes","\u002Fguide\u002Fwebsite\u002Fscroll-scenes","3.guide\u002F2.website\u002F10.scroll-scenes",{"title":161,"path":162,"stem":163},"Pages and posts","\u002Fguide\u002Fwebsite\u002Fpages","3.guide\u002F2.website\u002F2.pages",{"title":165,"path":166,"stem":167},"The visual editor","\u002Fguide\u002Fwebsite\u002Fvisual-editor","3.guide\u002F2.website\u002F3.visual-editor",{"title":169,"path":170,"stem":171},"Roles and locks","\u002Fguide\u002Fwebsite\u002Froles-and-locks","3.guide\u002F2.website\u002F4.roles-and-locks",{"title":173,"path":174,"stem":175},"Header and footer","\u002Fguide\u002Fwebsite\u002Fheader-and-footer","3.guide\u002F2.website\u002F5.header-and-footer",{"title":177,"path":178,"stem":179},"Theme","\u002Fguide\u002Fwebsite\u002Ftheme","3.guide\u002F2.website\u002F6.theme",{"title":181,"path":182,"stem":183},"Redirects","\u002Fguide\u002Fwebsite\u002Fredirects","3.guide\u002F2.website\u002F7.redirects",{"title":185,"path":186,"stem":187},"Site settings","\u002Fguide\u002Fwebsite\u002Fsite-settings","3.guide\u002F2.website\u002F8.site-settings",{"title":189,"path":190,"stem":191},"The site","\u002Fguide\u002Fwebsite\u002Fthe-site","3.guide\u002F2.website\u002F9.the-site",{"title":193,"icon":194,"path":195,"stem":196,"children":197,"page":38},"Publishing","i-lucide-send","\u002Fguide\u002Fpublishing","3.guide\u002F3.publishing",[198,202,206],{"title":199,"path":200,"stem":201},"Publishing and preview","\u002Fguide\u002Fpublishing\u002Fpublishing","3.guide\u002F3.publishing\u002F1.publishing",{"title":203,"path":204,"stem":205},"Builds","\u002Fguide\u002Fpublishing\u002Fbuilds","3.guide\u002F3.publishing\u002F2.builds",{"title":207,"path":208,"stem":209},"CDN caches","\u002Fguide\u002Fpublishing\u002Fcaches","3.guide\u002F3.publishing\u002F3.caches",{"title":211,"icon":212,"path":213,"stem":214,"children":215,"page":38},"People, security and privacy","i-lucide-shield","\u002Fguide\u002Fpeople-and-security","3.guide\u002F4.people-and-security",[216,220,224,228,232,236,240,244,248,252,256,260,264,268,272,276],{"title":217,"path":218,"stem":219},"People in SHADE","\u002Fguide\u002Fpeople-and-security\u002Fpeople-in-shade","3.guide\u002F4.people-and-security\u002F0.people-in-shade",{"title":221,"path":222,"stem":223},"Team and roles","\u002Fguide\u002Fpeople-and-security\u002Fteam","3.guide\u002F4.people-and-security\u002F1.team",{"title":225,"path":226,"stem":227},"Errors and security alerts","\u002Fguide\u002Fpeople-and-security\u002Ferrors","3.guide\u002F4.people-and-security\u002F10.errors",{"title":229,"path":230,"stem":231},"Exporting an instance","\u002Fguide\u002Fpeople-and-security\u002Fexporting","3.guide\u002F4.people-and-security\u002F11.exporting",{"title":233,"path":234,"stem":235},"Organisations","\u002Fguide\u002Fpeople-and-security\u002Forganisations","3.guide\u002F4.people-and-security\u002F12.organisations",{"title":237,"path":238,"stem":239},"Signing in through an identity provider (team)","\u002Fguide\u002Fpeople-and-security\u002Fidentity-providers","3.guide\u002F4.people-and-security\u002F13.identity-providers",{"title":241,"path":242,"stem":243},"System status","\u002Fguide\u002Fpeople-and-security\u002Fsystem-status","3.guide\u002F4.people-and-security\u002F14.system-status",{"title":245,"path":246,"stem":247},"Appearance","\u002Fguide\u002Fpeople-and-security\u002Fappearance","3.guide\u002F4.people-and-security\u002F15.appearance",{"title":249,"path":250,"stem":251},"Accounts and personal pages","\u002Fguide\u002Fpeople-and-security\u002Faccounts","3.guide\u002F4.people-and-security\u002F2.accounts",{"title":253,"path":254,"stem":255},"Signing in (team)","\u002Fguide\u002Fpeople-and-security\u002Fsign-in","3.guide\u002F4.people-and-security\u002F3.sign-in",{"title":257,"path":258,"stem":259},"API tokens","\u002Fguide\u002Fpeople-and-security\u002Fapi-tokens","3.guide\u002F4.people-and-security\u002F4.api-tokens",{"title":261,"path":262,"stem":263},"Audit log","\u002Fguide\u002Fpeople-and-security\u002Faudit","3.guide\u002F4.people-and-security\u002F5.audit",{"title":265,"path":266,"stem":267},"Request protection","\u002Fguide\u002Fpeople-and-security\u002Fprotection","3.guide\u002F4.people-and-security\u002F6.protection",{"title":269,"path":270,"stem":271},"Personal data per person","\u002Fguide\u002Fpeople-and-security\u002Fprivacy","3.guide\u002F4.people-and-security\u002F7.privacy",{"title":273,"path":274,"stem":275},"Data retention","\u002Fguide\u002Fpeople-and-security\u002Fretention","3.guide\u002F4.people-and-security\u002F8.retention",{"title":277,"path":278,"stem":279},"Consent banner","\u002Fguide\u002Fpeople-and-security\u002Fconsent","3.guide\u002F4.people-and-security\u002F9.consent",{"title":281,"icon":282,"path":283,"stem":284,"children":285,"page":38},"Services","i-lucide-plug","\u002Fguide\u002Fservices","3.guide\u002F5.services",[286,290,294,298,302,306],{"title":287,"path":288,"stem":289},"Email","\u002Fguide\u002Fservices\u002Femail","3.guide\u002F5.services\u002F1.email",{"title":291,"path":292,"stem":293},"Opening hours","\u002Fguide\u002Fservices\u002Fopening-hours","3.guide\u002F5.services\u002F4.opening-hours",{"title":295,"path":296,"stem":297},"Webhooks","\u002Fguide\u002Fservices\u002Fwebhooks","3.guide\u002F5.services\u002F5.webhooks",{"title":299,"path":300,"stem":301},"Locations","\u002Fguide\u002Fservices\u002Flocations","3.guide\u002F5.services\u002F6.locations",{"title":303,"path":304,"stem":305},"VAT rates","\u002Fguide\u002Fservices\u002Fvat-rates","3.guide\u002F5.services\u002F7.vat-rates",{"title":307,"path":308,"stem":309},"Channels","\u002Fguide\u002Fservices\u002Fchannels","3.guide\u002F5.services\u002F8.channels",{"title":311,"icon":312,"path":313,"stem":314,"children":315,"page":38},"InstalledModules","i-lucide-puzzle","\u002Fguide\u002Fmodules","3.guide\u002F6.modules",[316,320,324,328,332,336,340,344,348,352,356,360],{"title":317,"path":318,"stem":319},"Modules","\u002Fguide\u002Fmodules\u002Fmanaging","3.guide\u002F6.modules\u002F1.managing",{"title":321,"path":322,"stem":323},"Dutch services (module)","\u002Fguide\u002Fmodules\u002Fnl","3.guide\u002F6.modules\u002F10.nl",{"title":325,"path":326,"stem":327},"Editorial (module)","\u002Fguide\u002Fmodules\u002Feditorial","3.guide\u002F6.modules\u002F11.editorial",{"title":329,"path":330,"stem":331},"Appointments (module)","\u002Fguide\u002Fmodules\u002Fappointments","3.guide\u002F6.modules\u002F2.appointments",{"title":333,"path":334,"stem":335},"Shop (the commerce module)","\u002Fguide\u002Fmodules\u002Fshop","3.guide\u002F6.modules\u002F3.shop",{"title":337,"path":338,"stem":339},"Untrusted modules","\u002Fguide\u002Fmodules\u002Funtrusted","3.guide\u002F6.modules\u002F4.untrusted",{"title":341,"path":342,"stem":343},"Analytics (module)","\u002Fguide\u002Fmodules\u002Fanalytics","3.guide\u002F6.modules\u002F5.analytics",{"title":345,"path":346,"stem":347},"Error forwarding (module)","\u002Fguide\u002Fmodules\u002Ferror-forwarding","3.guide\u002F6.modules\u002F6.error-forwarding",{"title":349,"path":350,"stem":351},"Client programs","\u002Fguide\u002Fmodules\u002Fprograms","3.guide\u002F6.modules\u002F7.programs",{"title":353,"path":354,"stem":355},"Import and export (module)","\u002Fguide\u002Fmodules\u002Fimport","3.guide\u002F6.modules\u002F8.import",{"title":357,"path":358,"stem":359},"Payments (module)","\u002Fguide\u002Fmodules\u002Fpayments","3.guide\u002F6.modules\u002F8.payments",{"title":361,"path":362,"stem":363},"Forms (module)","\u002Fguide\u002Fmodules\u002Fforms","3.guide\u002F6.modules\u002F9.forms",{"title":365,"icon":366,"path":367,"stem":368,"children":369,"page":38},"AI assistants","i-lucide-bot","\u002Fguide\u002Fai","3.guide\u002F7.ai",[370,374],{"title":371,"path":372,"stem":373},"AI assistants (MCP)","\u002Fguide\u002Fai\u002Fassistants","3.guide\u002F7.ai\u002F1.assistants",{"title":375,"path":376,"stem":377},"Connecting an AI assistant","\u002Fguide\u002Fai\u002Fconnecting","3.guide\u002F7.ai\u002F2.connecting",{"title":379,"icon":380,"path":381,"stem":382,"children":383,"page":38},"Developers","i-lucide-code","\u002Fdevelopers","4.developers",[384,388,392,396,400,404,408,412,416,420,424,428,432,435,489,493,497,501,536],{"title":385,"path":386,"stem":387},"Architecture","\u002Fdevelopers\u002Farchitecture","4.developers\u002F1.architecture",{"title":389,"path":390,"stem":391},"Capabilities","\u002Fdevelopers\u002Fcapabilities","4.developers\u002F10.capabilities",{"title":393,"path":394,"stem":395},"Trust","\u002Fdevelopers\u002Ftrust","4.developers\u002F11.trust",{"title":397,"path":398,"stem":399},"Redis and the ports","\u002Fdevelopers\u002Fredis","4.developers\u002F12.redis",{"title":401,"path":402,"stem":403},"The worker container role","\u002Fdevelopers\u002Fworker","4.developers\u002F13.worker",{"title":405,"path":406,"stem":407},"kv: a module's own key-value storage","\u002Fdevelopers\u002Fkv","4.developers\u002F14.kv",{"title":409,"path":410,"stem":411},"Processes: long-running work on the worker","\u002Fdevelopers\u002Fprocesses","4.developers\u002F15.processes",{"title":413,"path":414,"stem":415},"Network: a module's outgoing calls","\u002Fdevelopers\u002Fnetwork","4.developers\u002F16.network",{"title":417,"path":418,"stem":419},"Realtime","\u002Fdevelopers\u002Frealtime","4.developers\u002F17.realtime",{"title":421,"path":422,"stem":423},"Private files","\u002Fdevelopers\u002Ffiles","4.developers\u002F18.files",{"title":425,"path":426,"stem":427},"Notify","\u002Fdevelopers\u002Fnotify","4.developers\u002F19.notify",{"title":429,"path":430,"stem":431},"Collections","\u002Fdevelopers\u002Fcollections","4.developers\u002F2.collections",{"title":337,"path":433,"stem":434},"\u002Fdevelopers\u002Funtrusted","4.developers\u002F20.untrusted",{"title":436,"icon":312,"path":437,"stem":438,"children":439},"Writing a plugin","\u002Fdevelopers\u002Fmodules","4.developers\u002F3.modules\u002Findex",[440,442,446,450,454,458,462,466,470,473,477,481,485],{"title":441,"path":437,"stem":438},"Writing a module",{"title":443,"path":444,"stem":445},"Module SDK and tooling","\u002Fdevelopers\u002Fmodules\u002Fsdk-and-tooling","4.developers\u002F3.modules\u002F1.sdk-and-tooling",{"title":447,"path":448,"stem":449},"Connecting accounts with OAuth2","\u002Fdevelopers\u002Fmodules\u002Foauth","4.developers\u002F3.modules\u002F10.oauth",{"title":451,"path":452,"stem":453},"Calls between modules","\u002Fdevelopers\u002Fmodules\u002Fcalls-between-modules","4.developers\u002F3.modules\u002F11.calls-between-modules",{"title":455,"path":456,"stem":457},"Experimental parts","\u002Fdevelopers\u002Fmodules\u002Fexperimental-parts","4.developers\u002F3.modules\u002F12.experimental-parts",{"title":459,"path":460,"stem":461},"The manifest","\u002Fdevelopers\u002Fmodules\u002Fmanifest","4.developers\u002F3.modules\u002F2.manifest",{"title":463,"path":464,"stem":465},"Routes","\u002Fdevelopers\u002Fmodules\u002Froutes","4.developers\u002F3.modules\u002F3.routes",{"title":467,"path":468,"stem":469},"Admin screens and the site part","\u002Fdevelopers\u002Fmodules\u002Fadmin-and-site","4.developers\u002F3.modules\u002F4.admin-and-site",{"title":110,"path":471,"stem":472},"\u002Fdevelopers\u002Fmodules\u002Fcontent","4.developers\u002F3.modules\u002F5.content",{"title":474,"path":475,"stem":476},"Background work and services","\u002Fdevelopers\u002Fmodules\u002Fbackground-and-services","4.developers\u002F3.modules\u002F6.background-and-services",{"title":478,"path":479,"stem":480},"SDK reference","\u002Fdevelopers\u002Fmodules\u002Fsdk-reference","4.developers\u002F3.modules\u002F7.sdk-reference",{"title":482,"path":483,"stem":484},"The website module's SDK","\u002Fdevelopers\u002Fmodules\u002Fwebsite-sdk","4.developers\u002F3.modules\u002F8.website-sdk",{"title":486,"path":487,"stem":488},"Incoming webhooks","\u002Fdevelopers\u002Fmodules\u002Fincoming-webhooks","4.developers\u002F3.modules\u002F9.incoming-webhooks",{"title":490,"path":491,"stem":492},"Core and the website module","\u002Fdevelopers\u002Fcore-and-website-module","4.developers\u002F4.core-and-website-module",{"title":494,"path":495,"stem":496},"The API","\u002Fdevelopers\u002Fapi","4.developers\u002F6.api",{"title":498,"path":499,"stem":500},"API reference","\u002Fdevelopers\u002Fapi-reference","4.developers\u002F6.api-reference",{"title":502,"icon":503,"path":504,"stem":505,"children":506},"Sites in other frameworks","i-lucide-layout-template","\u002Fdevelopers\u002Fframeworks","4.developers\u002F7.frameworks\u002Findex",[507,508,512,516,520,524,528,532],{"title":502,"path":504,"stem":505},{"title":509,"path":510,"stem":511},"Accounts: sign-in and modules' routes","\u002Fdevelopers\u002Fframeworks\u002Faccounts","4.developers\u002F7.frameworks\u002F1.accounts",{"title":513,"path":514,"stem":515},"`@shadestack\u002Ftree`","\u002Fdevelopers\u002Fframeworks\u002Ftree","4.developers\u002F7.frameworks\u002F2.tree",{"title":517,"path":518,"stem":519},"Expressions and styles","\u002Fdevelopers\u002Fframeworks\u002Fexpressions-and-styles","4.developers\u002F7.frameworks\u002F3.expressions-and-styles",{"title":521,"path":522,"stem":523},"`@shadestack\u002Frender`","\u002Fdevelopers\u002Fframeworks\u002Frender","4.developers\u002F7.frameworks\u002F4.render",{"title":525,"path":526,"stem":527},"`@shadestack\u002Finteractions`","\u002Fdevelopers\u002Fframeworks\u002Finteractions","4.developers\u002F7.frameworks\u002F5.interactions",{"title":529,"path":530,"stem":531},"`@shadestack\u002Fa11y`","\u002Fdevelopers\u002Fframeworks\u002Fa11y","4.developers\u002F7.frameworks\u002F6.a11y",{"title":533,"path":534,"stem":535},"Your own page for SHADE's links","\u002Fdevelopers\u002Fframeworks\u002Flinks","4.developers\u002F7.frameworks\u002F7.links",{"title":537,"path":538,"stem":539},"Build a client module","\u002Fdevelopers\u002Fclient-module","4.developers\u002F9.client-module",{"title":541,"icon":542,"path":543,"stem":544,"children":545,"page":38},"Security","i-lucide-shield-check","\u002Fsecurity","5.security",[546,550,554,558],{"title":547,"path":548,"stem":549},"Reporting a vulnerability","\u002Fsecurity\u002Freporting","5.security\u002F0.reporting",{"title":551,"path":552,"stem":553},"Security testing","\u002Fsecurity\u002Ftesting","5.security\u002F1.testing",{"title":555,"path":556,"stem":557},"Hardening a production instance","\u002Fsecurity\u002Fhardening","5.security\u002F2.hardening",{"title":559,"path":560,"stem":561},"Manual testing with Kali Linux","\u002Fsecurity\u002Fmanual-testing","5.security\u002F3.manual-testing",{"title":563,"icon":564,"path":565,"stem":566,"children":567,"page":38},"Contributing","i-lucide-git-pull-request","\u002Fcontributing","6.contributing",[568,572,576,580],{"title":569,"path":570,"stem":571},"Reading the code","\u002Fcontributing\u002Freading-the-code","6.contributing\u002F1.reading-the-code",{"title":573,"path":574,"stem":575},"Docs site","\u002Fcontributing\u002Fdocs-site","6.contributing\u002F2.docs-site",{"title":577,"path":578,"stem":579},"Releases","\u002Fcontributing\u002Freleases","6.contributing\u002F3.releases",{"title":581,"path":582,"stem":583},"Load tests","\u002Fcontributing\u002Fload-tests","6.contributing\u002F4.load-tests",{"title":585,"icon":586,"path":587,"stem":588,"children":589,"page":38},"Project","i-lucide-map","\u002Fproject","7.project",[590,594,598,602],{"title":591,"path":592,"stem":593},"Roadmap","\u002Fproject\u002Froadmap","7.project\u002F1.roadmap",{"title":595,"path":596,"stem":597},"Known issues","\u002Fproject\u002Fknown-issues","7.project\u002F2.known-issues",{"title":599,"path":600,"stem":601},"Changelog","\u002Fproject\u002Fchangelog","7.project\u002F3.changelog",{"title":603,"path":604,"stem":605},"Decisions","\u002Fproject\u002Fdecisions","7.project\u002F4.decisions",{"title":607,"path":608,"stem":609,"children":610,"icon":612},"Community","\u002Fcommunity","8.community\u002Findex",[611],{"title":607,"path":608,"stem":609},"i-lucide-users",{"id":614,"title":207,"body":615,"description":1184,"extension":1359,"links":1360,"meta":1361,"navigation":1362,"path":208,"seo":1363,"stem":209,"__hash__":1364},"docs\u002F3.guide\u002F3.publishing\u002F3.caches.md",{"type":616,"value":617,"toc":1348},"minimark",[618,627,632,645,692,706,709,713,777,789,793,796,869,912,916,968,972,1039,1042,1046,1088,1101,1105,1153,1156,1160,1178,1315,1329,1333,1344],[619,620,621,622,626],"p",{},"A CDN in front of the site keeps copies of its pages so fewer visitors reach the server. Without more, a published\nchange shows only when the CDN's copy expires. SHADE can clear (purge) a CDN's cache itself, at the right moment after\neach publish, so visitors see the change right after the build. Each cache SHADE clears is a ",[623,624,625],"strong",{},"purge target",".",[628,629,631],"h2",{"id":630},"what-users-can-do","What users can do",[619,633,634,637,638,641,642,644],{},[623,635,636],{},"Admins",", under ",[623,639,640],{},"Settings"," → ",[623,643,207],{}," (next to Other frontends):",[646,647,648,677,683,686],"ul",{},[649,650,651,654,655],"li",{},[623,652,653],{},"Add a cache",": a name, what it is in front of, the service and its settings.\n",[646,656,657,671],{},[649,658,659,662,663,666,667,670],{},[623,660,661],{},"Cloudflare",": the zone ID and an API token. ",[623,664,665],{},"Fastly",": the service ID and an API token. ",[623,668,669],{},"Netlify",": the\nproject ID and a personal access token. The token is stored encrypted, is never shown again, and only \"Token\nsaved.\" says it is there.",[649,672,673,676],{},[623,674,675],{},"Purge webhook",": an https address of your own (a reverse proxy, a script). SHADE gives a signing secret, shown\nonce: copy it then.",[649,678,679,682],{},[623,680,681],{},"Send test purge",": clears a tag nothing carries, so it checks the token, the zone, service or project, or the\naddress without clearing anything. The row then shows how it went.",[649,684,685],{},"See when each cache was last cleared, or that it failed and why.",[649,687,688,691],{},[623,689,690],{},"Remove"," a cache: SHADE no longer clears it; its copies stay until they expire.",[619,693,694,697,698,701,702,705],{},[623,695,696],{},"Editors and admins",": ",[623,699,700],{},"Clear cache now"," clears every cache at once, beside ",[623,703,704],{},"Rebuild now"," on the website\nmodule's Builds screen, and on the CDN caches card. With no cache set, it clears nothing and says so: \"No CDN caches\nare set\", with a pointer to Settings → CDN caches.",[619,707,708],{},"When the admin is reached through a CDN and no cache is listed, the card warns: \"No cache is cleared after a publish\".",[628,710,712],{"id":711},"who-may-do-it","Who may do it",[714,715,716,732],"table",{},[717,718,719],"thead",{},[720,721,722,726,729],"tr",{},[723,724,725],"th",{},"Action",[723,727,728],{},"Permission",[723,730,731],{},"Roles",[733,734,735,754,766],"tbody",{},[720,736,737,741,751],{},[738,739,740],"td",{},"See, add, test and remove caches",[738,742,743,747,748],{},[744,745,746],"code",{},"settings.read",", ",[744,749,750],{},"settings.update",[738,752,753],{},"admin",[720,755,756,758,763],{},[738,757,700],{},[738,759,760],{},[744,761,762],{},"rebuild.trigger",[738,764,765],{},"admin, editor",[720,767,768,771,774],{},[738,769,770],{},"Report a frontend's build",[738,772,773],{},"a build token; nobody else",[738,775,776],{},"the frontend's builder",[619,778,779,780,782,783,785,786,626],{},"Adding and removing a cache is audited as ",[744,781,750],{},"; Clear cache now as ",[744,784,762],{},"; a frontend's build\nreport as ",[744,787,788],{},"build.report",[628,790,792],{"id":791},"when-a-cache-is-cleared","When a cache is cleared",[619,794,795],{},"What a cache is in front of decides when SHADE clears it, and what:",[714,797,798,811],{},[717,799,800],{},[720,801,802,805,808],{},[723,803,804],{},"In front of",[723,806,807],{},"Cleared",[723,809,810],{},"What",[733,812,813,824,835,845,858],{},[720,814,815,818,821],{},[738,816,817],{},"This website",[738,819,820],{},"after the site's builder reports a build that worked",[738,822,823],{},"everything on the Site URL's host",[720,825,826,829,832],{},[738,827,828],{},"Another frontend with a build hook",[738,830,831],{},"after its builder reports a build that worked",[738,833,834],{},"everything on its host",[720,836,837,840,843],{},[738,838,839],{},"Another frontend without a build hook",[738,841,842],{},"when the rebuild starts",[738,844,834],{},[720,846,847,850,852],{},[738,848,849],{},"The API's public routes",[738,851,842],{},[738,853,854,855],{},"every module answer tagged ",[744,856,857],{},"shade-routes",[720,859,860,863,866],{},[738,861,862],{},"Media files",[738,864,865],{},"when a file is deleted for good",[738,867,868],{},"that file's address",[646,870,871,877,889,895,901,906],{},[649,872,873,876],{},[623,874,875],{},"After the build, never before."," Clearing before the new pages are built would let the CDN fetch the old pages\nagain. A failed build clears nothing. A builder that doesn't report its builds gets no clear: the card says so.",[649,878,879,882,883,888],{},[623,880,881],{},"Whatever asks for a rebuild clears too",": publishing, unpublishing, deleting, scheduled publishes, releases, site\nsettings, modules switched on or off, the theme and redirects (",[884,885,887],"a",{"href":886},"\u002Fguide\u002Fpublishing\u002Fpublishing#what-requests-a-rebuild","What requests a\nrebuild",").",[649,890,891,894],{},[623,892,893],{},"Gathered."," Many publishes in a row give one clear per cache, at most one a minute. A clear asked for meanwhile\njoins the one that waits.",[649,896,897,900],{},[623,898,899],{},"Deleted files."," A media file deleted for good (from the trash, or by retention) is cleared by its address on the\nmedia's cache, so an erased image doesn't stay on the CDN.",[649,902,903,905],{},[623,904,700],{}," clears everything on every cache, within the minute.",[649,907,908,911],{},[623,909,910],{},"Each service clears what it can."," Fastly has no clear by host: \"everything\" is everything on the Fastly\nservice, so a service with more domains is cleared whole. Netlify clears a whole project or tags, never one\naddress: a deleted file clears the whole project behind it. Every clear is a full one, never Fastly's soft purge,\nwhich may still serve the old copy.",[628,913,915],{"id":914},"rules-and-limits","Rules and limits",[646,917,918,928,941,944,947,954],{},[649,919,920,921,924,925,888],{},"A failed clear never fails a publish or a build. SHADE tries again after 1, 2 and 4 minutes. The card shows the\nfailure in its own words, never the CDN's answer, and after the last try it goes to the error log as\n",[744,922,923],{},"purge: \u003Cname>",". A service that keeps failing raises the \"An outside service keeps failing\" alert\n(",[884,926,927],{"href":226},"Errors",[649,929,930,931,747,934,937,938,626],{},"Every call goes out over https only, to public addresses only, waits 10 seconds at most and never follows a\nredirect. Each CDN is always called at its own address: ",[744,932,933],{},"api.cloudflare.com",[744,935,936],{},"api.fastly.com",",\n",[744,939,940],{},"api.netlify.com",[649,942,943],{},"Cloudflare takes at most 30 addresses, tags or hosts per call: SHADE sends more in several calls. Fastly takes at\nmost 256 tags per call and one address per call; past 25 addresses SHADE clears the whole service instead. A purge\nwebhook gets at most 500 addresses per message.",[649,945,946],{},"Netlify clears a project or a tag at most twice every 5 seconds. SHADE sends at most one clear a minute per cache,\nso this limit is only met when something else clears the same project too.",[649,948,949,950,953],{},"The content API's answers are never cached by a CDN (",[744,951,952],{},"Cache-Control: private, no-store","): it is build traffic behind\na token.",[649,955,956,957,959,960,963,964,967],{},"A module's public route with a cache gets the tag ",[744,958,857],{}," in ",[744,961,962],{},"Cache-Tag"," (Cloudflare, Netlify) and\n",[744,965,966],{},"Surrogate-Key"," (Fastly, Varnish). A module's own tags are dropped.",[628,969,971],{"id":970},"with-cloudflare","With Cloudflare",[973,974,975,989,1014,1030,1036],"ol",{},[649,976,977,978,981,982,985,986,626],{},"In Cloudflare, open the site's zone. On its ",[623,979,980],{},"Overview"," page, under ",[623,983,984],{},"API",", copy the ",[623,987,988],{},"Zone ID",[649,990,991,992,641,995,998,999,641,1002,1005,1006,1009,1010,1013],{},"Under ",[623,993,994],{},"My Profile",[623,996,997],{},"API Tokens",", create a token with the permission ",[623,1000,1001],{},"Zone",[623,1003,1004],{},"Cache Purge"," →\n",[623,1007,1008],{},"Purge",", and under ",[623,1011,1012],{},"Zone Resources"," only this zone. Give it nothing else.",[649,1015,1016,1017,641,1019,641,1021,1023,1024,1026,1027,1029],{},"In SHADE, open ",[623,1018,640],{},[623,1020,207],{},[623,1022,653],{},". Choose what the zone is in front of (usually\n",[623,1025,817],{},"), ",[623,1028,661],{},", paste the zone ID and the token, and save.",[649,1031,1032,1033,1035],{},"Click ",[623,1034,681],{},". \"Cleared\" means the token works on this zone. \"The CDN refused the token\" means it may\nnot purge this zone.",[649,1037,1038],{},"Publish a change. After the site's build, the row shows when it was cleared.",[619,1040,1041],{},"A site on Cloudflare Workers with static assets doesn't need this: each deploy serves its own files.",[628,1043,1045],{"id":1044},"with-fastly","With Fastly",[973,1047,1048,1055,1071,1083],{},[649,1049,1050,1051,1054],{},"In Fastly, open the service in front of the site. Copy its ",[623,1052,1053],{},"service ID",", shown beside its name.",[649,1056,991,1057,641,1060,1062,1063,1066,1067,1070],{},[623,1058,1059],{},"Account",[623,1061,257],{},", create an automation or user token with only the scopes ",[623,1064,1065],{},"purge_select","\n(Purge select content) and ",[623,1068,1069],{},"purge_all"," (Purge full cache), limited to this service. Give it nothing else.",[649,1072,1016,1073,641,1075,641,1077,1079,1080,1082],{},[623,1074,640],{},[623,1076,207],{},[623,1078,653],{},". Choose what the service is in front of, ",[623,1081,665],{},",\npaste the service ID and the token, and save.",[649,1084,1032,1085,1087],{},[623,1086,681],{},". \"Cleared\" means the token works on this service. \"The CDN refused the token\" means it\nmay not purge it, or it expired.",[619,1089,1090,1091,1093,1094,1096,1097,1100],{},"SHADE clears everything with ",[744,1092,1069],{},", the API's tag with the surrogate key ",[744,1095,857],{}," and a deleted file by\nits address, each sent with the token in the ",[744,1098,1099],{},"Fastly-Key"," header.",[628,1102,1104],{"id":1103},"with-netlify","With Netlify",[973,1106,1107,1124,1136,1148],{},[649,1108,1109,1110,641,1113,641,1116,1119,1120,1123],{},"In Netlify, open the project. Under ",[623,1111,1112],{},"Project configuration",[623,1114,1115],{},"General",[623,1117,1118],{},"Project details",", copy the\n",[623,1121,1122],{},"Project ID"," (called Site ID before).",[649,1125,991,1126,641,1129,641,1132,1135],{},[623,1127,1128],{},"User settings",[623,1130,1131],{},"Applications",[623,1133,1134],{},"Personal access tokens",", create a token, with an expiry date if you\nlike. Netlify can't limit a token to one project: it reaches every project the account that made it can. Make it\nwith an account that can reach only this project where your plan allows that.",[649,1137,1016,1138,641,1140,641,1142,1144,1145,1147],{},[623,1139,640],{},[623,1141,207],{},[623,1143,653],{},". Choose what the project is in front of,\n",[623,1146,669],{},", paste the project ID and the token, and save.",[649,1149,1032,1150,1152],{},[623,1151,681],{},". \"Cleared\" means the token works on this project. \"The CDN refused the request\" means the\nproject ID is wrong.",[619,1154,1155],{},"A static site deployed on Netlify doesn't need this: each deploy is served fresh. A Netlify cache helps in front of\nthe API's public routes or a frontend rendered on request, which Netlify caches only when their answers say so.",[628,1157,1159],{"id":1158},"with-a-purge-webhook","With a purge webhook",[619,1161,1162,1163,1166,1167,747,1170,1173,1174,1177],{},"SHADE sends a ",[744,1164,1165],{},"POST"," with a JSON body to your address, signed as SHADE's outgoing webhooks are (Standard Webhooks:\n",[744,1168,1169],{},"webhook-id",[744,1171,1172],{},"webhook-timestamp"," and ",[744,1175,1176],{},"webhook-signature",", with the secret shown when the cache was added):",[1179,1180,1185],"pre",{"className":1181,"code":1182,"language":1183,"meta":1184,"style":1184},"language-json shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","{\n  \"type\": \"cache.purge\",\n  \"timestamp\": \"2026-11-14T10:00:00.000Z\",\n  \"data\": { \"hosts\": [\"www.example.org\"], \"tags\": [], \"urls\": [] }\n}\n","json","",[744,1186,1187,1196,1223,1244,1309],{"__ignoreMap":1184},[1188,1189,1192],"span",{"class":1190,"line":1191},"line",1,[1188,1193,1195],{"class":1194},"sMK4o","{\n",[1188,1197,1199,1202,1206,1209,1212,1215,1219,1221],{"class":1190,"line":1198},2,[1188,1200,1201],{"class":1194},"  \"",[1188,1203,1205],{"class":1204},"spNyl","type",[1188,1207,1208],{"class":1194},"\"",[1188,1210,1211],{"class":1194},":",[1188,1213,1214],{"class":1194}," \"",[1188,1216,1218],{"class":1217},"sfazB","cache.purge",[1188,1220,1208],{"class":1194},[1188,1222,937],{"class":1194},[1188,1224,1226,1228,1231,1233,1235,1237,1240,1242],{"class":1190,"line":1225},3,[1188,1227,1201],{"class":1194},[1188,1229,1230],{"class":1204},"timestamp",[1188,1232,1208],{"class":1194},[1188,1234,1211],{"class":1194},[1188,1236,1214],{"class":1194},[1188,1238,1239],{"class":1217},"2026-11-14T10:00:00.000Z",[1188,1241,1208],{"class":1194},[1188,1243,937],{"class":1194},[1188,1245,1247,1249,1252,1254,1256,1259,1261,1265,1267,1269,1272,1274,1277,1279,1282,1284,1287,1289,1291,1294,1296,1299,1301,1303,1306],{"class":1190,"line":1246},4,[1188,1248,1201],{"class":1194},[1188,1250,1251],{"class":1204},"data",[1188,1253,1208],{"class":1194},[1188,1255,1211],{"class":1194},[1188,1257,1258],{"class":1194}," {",[1188,1260,1214],{"class":1194},[1188,1262,1264],{"class":1263},"sBMFI","hosts",[1188,1266,1208],{"class":1194},[1188,1268,1211],{"class":1194},[1188,1270,1271],{"class":1194}," [",[1188,1273,1208],{"class":1194},[1188,1275,1276],{"class":1217},"www.example.org",[1188,1278,1208],{"class":1194},[1188,1280,1281],{"class":1194},"],",[1188,1283,1214],{"class":1194},[1188,1285,1286],{"class":1263},"tags",[1188,1288,1208],{"class":1194},[1188,1290,1211],{"class":1194},[1188,1292,1293],{"class":1194}," [],",[1188,1295,1214],{"class":1194},[1188,1297,1298],{"class":1263},"urls",[1188,1300,1208],{"class":1194},[1188,1302,1211],{"class":1194},[1188,1304,1305],{"class":1194}," []",[1188,1307,1308],{"class":1194}," }\n",[1188,1310,1312],{"class":1190,"line":1311},5,[1188,1313,1314],{"class":1194},"}\n",[619,1316,1317,1319,1320,1322,1323,1325,1326,1328],{},[744,1318,1264],{},": clear everything on these hosts. ",[744,1321,1286],{},": clear every answer carrying the tag (",[744,1324,857],{},"). ",[744,1327,1298],{},": clear\nthese addresses. Check the signature with any Standard Webhooks library, and answer with a 2xx status when it is done.",[628,1330,1332],{"id":1331},"for-developers","For developers",[619,1334,1335,1336,1339,1340,1343],{},"The code and its tests: ",[744,1337,1338],{},"shade\u002Ffeatures\u002Fcontent-delivery\u002FREADME.md"," in the ",[744,1341,1342],{},"shade"," repository, decision 0016 point 11.",[1345,1346,1347],"style",{},"html pre.shiki code .sMK4o, html code.shiki .sMK4o{--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF}html pre.shiki code .spNyl, html code.shiki .spNyl{--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA}html pre.shiki code .sfazB, html code.shiki .sfazB{--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D}html pre.shiki code .sBMFI, html code.shiki .sBMFI{--shiki-light:#E2931D;--shiki-default:#FFCB6B;--shiki-dark:#FFCB6B}html .light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html.light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}",{"title":1184,"searchDepth":1198,"depth":1198,"links":1349},[1350,1351,1352,1353,1354,1355,1356,1357,1358],{"id":630,"depth":1198,"text":631},{"id":711,"depth":1198,"text":712},{"id":791,"depth":1198,"text":792},{"id":914,"depth":1198,"text":915},{"id":970,"depth":1198,"text":971},{"id":1044,"depth":1198,"text":1045},{"id":1103,"depth":1198,"text":1104},{"id":1158,"depth":1198,"text":1159},{"id":1331,"depth":1198,"text":1332},"md",null,{},true,{"title":207,"description":1184},"KkNO_5DSFArzihCmp8aoZPDQ-pqoNt_EPi0esbshV1Q",[1366,1367],{"title":203,"path":204,"stem":205,"description":1184,"children":-1},{"title":217,"path":218,"stem":219,"description":1184,"children":-1},1796500159073]