Skip to content

Invalidate CDN after upload#19

Open
tylerc wants to merge 3 commits intosyndbg:masterfrom
tylerc:master
Open

Invalidate CDN after upload#19
tylerc wants to merge 3 commits intosyndbg:masterfrom
tylerc:master

Conversation

@tylerc
Copy link
Copy Markdown

@tylerc tylerc commented May 17, 2021

This pull request implements the feature requested in #18 by adding cdnCacheInvalidateOptions to the configuration, which allows you to specify the Cloud CDN URL Map and a path (or paths) to invalidate after uploading files to the Cloud Storage bucket.

I also expanded the example config to show how using metadataFn works, since if you're worried about caching, you'll likely want to set custom cacheControl metadata.

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