From f861231f17c21155325fa67120c8b55b35448484 Mon Sep 17 00:00:00 2001 From: Davor Hrg Date: Sun, 21 Jan 2024 12:34:43 +0100 Subject: [PATCH] info for sharing gists and caching --- apps/jscad-web/README.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/apps/jscad-web/README.md b/apps/jscad-web/README.md index 25b5550..f32d70d 100644 --- a/apps/jscad-web/README.md +++ b/apps/jscad-web/README.md @@ -45,3 +45,10 @@ Header set Access-Control-Allow-Methods "PUT, GET, POST, DELETE, OPTIONS" ``` If you are using github you should be fine, as gists and github pages have those CORS headers. + +# using github gists to share scripts + +- To reference latest version, no commit hash should be in URL: +- max-age=300 for raw gist cannot be lowered +- publish change, wait for 5 minutes before sharing with ppls that gist was changed +