From 1013f260b9200f01c7920b42dac4c976067cd8f7 Mon Sep 17 00:00:00 2001 From: Matthew Taylor Date: Thu, 4 Aug 2016 08:02:45 -0400 Subject: [PATCH 1/2] Use `guess-mime-type` to get the right file type MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit should help with some header issues we’re seeing. Also remove `x-frame-options` meta tag, since it’s not acknolwedged by some browsers (like Chrome). --- Makefile | 4 ++-- src/template.html | 1 - 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index fa44ed42e..ced3f396a 100644 --- a/Makefile +++ b/Makefile @@ -31,8 +31,8 @@ webpack: $(WEBPACK) --bail sync-s3: - $(S3CMD) sync -P --delete-removed --exclude '.DS_Store' --exclude '*.svg' ./build/ s3://$(S3_BUCKET_NAME)/ - $(S3CMD) sync -P --delete-removed --exclude '*' --include '*.svg' --mime-type 'image/svg+xml' ./build/ s3://$(S3_BUCKET_NAME)/ + $(S3CMD) sync -P --delete-removed --exclude '.DS_Store' --exclude '*.svg' --guess-mime-type ./build/ s3://$(S3_BUCKET_NAME)/ + $(S3CMD) sync -P --delete-removed --exclude '*' --include '*.svg' --mime-type 'image/svg+xml' ./build/ s3://$(S3_BUCKET_NAME)/ sync-fastly: $(NODE) ./bin/configure-fastly.js diff --git a/src/template.html b/src/template.html index b97326cc4..9f905045a 100644 --- a/src/template.html +++ b/src/template.html @@ -6,7 +6,6 @@ - Scratch - {{title}} From 538aed21ebfc525503fce0584bb837647923faa8 Mon Sep 17 00:00:00 2001 From: Matthew Taylor Date: Thu, 4 Aug 2016 08:04:45 -0400 Subject: [PATCH 2/2] remove extra space --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index ced3f396a..10fd0db1a 100644 --- a/Makefile +++ b/Makefile @@ -32,7 +32,7 @@ webpack: sync-s3: $(S3CMD) sync -P --delete-removed --exclude '.DS_Store' --exclude '*.svg' --guess-mime-type ./build/ s3://$(S3_BUCKET_NAME)/ - $(S3CMD) sync -P --delete-removed --exclude '*' --include '*.svg' --mime-type 'image/svg+xml' ./build/ s3://$(S3_BUCKET_NAME)/ + $(S3CMD) sync -P --delete-removed --exclude '*' --include '*.svg' --mime-type 'image/svg+xml' ./build/ s3://$(S3_BUCKET_NAME)/ sync-fastly: $(NODE) ./bin/configure-fastly.js