Skip to content

Commit

Permalink
info for sharing gists and caching
Browse files Browse the repository at this point in the history
  • Loading branch information
hrgdavor committed Jan 21, 2024
1 parent a75f42d commit f861231
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions apps/jscad-web/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit f861231

Please sign in to comment.