Skip to content

Commit 55709c4

Browse files
committed
Add cache control to jupyter notebooks live sync
1 parent 63e61ef commit 55709c4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

spark/live/live_jupyter.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@ set -eou pipefail
44
fswatch ../live.ipynb | while read -r fpath; do \
55
echo -e "\033[0;36mRELOAD\033[0m $fpath $(date +"%H%m%S")"
66
jupyter nbconvert ../live.ipynb --to html --output-dir="$(pwd)"
7-
gsutil cp live.html gs://bigdata.luisbelloch.es/live.html
7+
gsutil -h "Cache-Control:no-cache,max-age=0" \
8+
cp live.html gs://bigdata.luisbelloch.es/en_directo.html
89
# scp live/live.html [email protected]:/var/www/html/index.html
910
done
1011

0 commit comments

Comments
 (0)