Skip to content

Commit 021c8bc

Browse files
committed
Send along a Surrogate-Key header for Fastly for purging
1 parent 3a5307c commit 021c8bc

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

Gruntfile.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,11 @@ module.exports = function(grunt) {
135135
key: '<%= aws.key %>',
136136
secret: '<%= aws.secret %>',
137137
bucket: '<%= aws.bucket %>',
138-
access: 'public-read'
138+
access: 'public-read',
139+
headers: {
140+
// Surrogate-Key header for Fastly to purge by release
141+
'x-amz-meta-surrogate-key': '<%= pkg.release %>'
142+
}
139143
},
140144
all: {
141145
upload: [{

0 commit comments

Comments
 (0)