Skip to content

Add support for customizing which index paths are invalidated - #26

Open
fenichelar wants to merge 2 commits into
lpender:masterfrom
fenichelar:master
Open

Add support for customizing which index paths are invalidated#26
fenichelar wants to merge 2 commits into
lpender:masterfrom
fenichelar:master

Conversation

@fenichelar

@fenichelar fenichelar commented Mar 1, 2022

Copy link
Copy Markdown

Purpose: Optimize invalidation costs by only invalidating the specific paths needed.

Configuration options:

indexFullPath: false            // Invalidate index.html paths (`/foo/index.html`) (default: true)
indexTrailingSlashPath: true    // Invalidate index.html trailing slash paths (`/foo/`) (default: false)
indexNoTrailingSlashPath: true  // Invalidate index.html no trailing slash paths (`/foo`) (default: false)

Backwards compatible: Same default behavior. indexRootPath removed from readme but still functional.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant