Skip to content

Commit

Permalink
Don't cache index.html (#675)
Browse files Browse the repository at this point in the history
Part of dockstore/dockstore-ui2#2447

We don't want browser to cache index.html; when we
do a new a release, we want latest index.html to be
fetched.
  • Loading branch information
coverbeck authored Jun 11, 2019
1 parent d199311 commit b0ca880
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,15 @@ jobs:
- aws-s3/copy:
from: dist
to: 's3://${AWS_BUCKET}/${CIRCLE_TAG}-$(echo $CIRCLE_SHA1 | cut -c -7)'
arguments: '--recursive'

arguments: |
--recursive \
--exclude index.html
- aws-s3/copy:
from: dist
to: 's3://${AWS_BUCKET}/${CIRCLE_TAG}-$(echo $CIRCLE_SHA1 | cut -c -7)'
arguments: |
--include index.html \
--cache-control max-age=0
workflows:
version: 2
everything:
Expand Down

0 comments on commit b0ca880

Please sign in to comment.