@decocms/blocks 7.31.2 → 7.31.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/sdk/cacheHeaders.ts +5 -1
package/package.json
CHANGED
package/src/sdk/cacheHeaders.ts
CHANGED
|
@@ -262,8 +262,12 @@ interface CachePattern {
|
|
|
262
262
|
profile: CacheProfileName;
|
|
263
263
|
}
|
|
264
264
|
|
|
265
|
+
// Authenticated / per-user areas that must never be edge-cached. Includes the
|
|
266
|
+
// hyphenless `myaccount` (VTEX My Account wrapper path) and common pt-BR routes
|
|
267
|
+
// (`minha-conta`, `meus-pedidos`, `pedidos`) — omitting these let account pages
|
|
268
|
+
// fall through to the cacheable `listing` default (see decocms/blocks#412).
|
|
265
269
|
const PRIVATE_PREFIX_RE =
|
|
266
|
-
/^\/(cart|checkout|account|
|
|
270
|
+
/^\/(cart|checkout|account|myaccount|my-account|minha-conta|meus-pedidos|pedidos|login)(\/|$)/;
|
|
267
271
|
|
|
268
272
|
const builtinPatterns: CachePattern[] = [
|
|
269
273
|
{
|