René's URL Explorer Experiment


Title: Static assets are served with a 10-minute TTL: every user re-downloads ~4 MB of unchanged JS all day · Issue #212 · vpython/glowscript · GitHub

Open Graph Title: Static assets are served with a 10-minute TTL: every user re-downloads ~4 MB of unchanged JS all day · Issue #212 · vpython/glowscript

X Title: Static assets are served with a 10-minute TTL: every user re-downloads ~4 MB of unchanged JS all day · Issue #212 · vpython/glowscript

Description: app.yaml sets no default_expiration and no per-handler expiration:, so GAE applies its default of 10 minutes to every static file: $ curl -sI https://www.glowscript.org/package/glow.3.2.min.js | grep -i cache-control cache-control: publi...

Open Graph Description: app.yaml sets no default_expiration and no per-handler expiration:, so GAE applies its default of 10 minutes to every static file: $ curl -sI https://www.glowscript.org/package/glow.3.2.min.js | gr...

X Description: app.yaml sets no default_expiration and no per-handler expiration:, so GAE applies its default of 10 minutes to every static file: $ curl -sI https://www.glowscript.org/package/glow.3.2.min.js | gr...

Opengraph URL: https://github.com/vpython/glowscript/issues/212

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Static assets are served with a 10-minute TTL: every user re-downloads ~4 MB of unchanged JS all day","articleBody":"`app.yaml` sets no `default_expiration` and no per-handler `expiration:`, so GAE applies its default of **10 minutes** to every static file:\n\n```\n$ curl -sI https://www.glowscript.org/package/glow.3.2.min.js | grep -i cache-control\ncache-control: public, max-age=600\n```\n\n`glow.3.2.min.js` is **4.3 MB**. A student in a two-hour lab re-downloads it roughly a dozen times.\n\n## What the traffic looks like\n\nA 2000-request sample of the last 24h of `request_log`. **99% of bytes are static assets**:\n\n| URL | bytes | requests |\n|---|---|---|\n| `/package/glow.3.2.min.js` | **158.1 MB** | 43 |\n| `/package/RScompiler.3.2.min.js` | 45.1 MB | 41 |\n| `/lib/ace/ace.js` | 10.1 MB | 20 |\n| `/lib/jquery/2.1/jquery-ui.custom.min.js` | 7.9 MB | 42 |\n| `/lib/plotly.js` | 6.0 MB | 1 |\n| `/` (the app itself) | 2.2 MB | 323 |\n\n(A sample, not a daily total — but the *ratio* is the point.)\n\n## ⚠️ The obvious fix is unsafe for the file that matters most\n\n`default_expiration: 365d` looks like a one-line win. It is not, and the reason is worth recording.\n\nThe version in the filename is the **release line, not the content**. `glow.3.2.min.js` has **65 commits and last changed 2025-03-29** — it keeps being modified under a fixed URL. Pinning it for a year would leave a stale copy in students' browsers after a fix ships, with no way to bust it.\n\nThe rule is: a long TTL is safe **only if the URL changes when the bytes change.**\n\nOlder lines *are* effectively frozen:\n\n| file | size | last changed | commits |\n|---|---|---|---|\n| `package/glow.3.2.min.js` | 4308 KB | **2025-03-29** | **65** |\n| `package/glow.3.1.min.js` | 4296 KB | 2021-10-22 | 10 |\n| `package/glow.3.0.min.js` | 4295 KB | 2021-03-25 | 21 |\n| `package/glow.2.9.min.js` | 4293 KB | 2020-05-01 | 19 |\n| `package/glow.2.8.min.js` | 5222 KB | 2019-06-20 | 1 |\n| `package/glow.2.7.min.js` | 4398 KB | 2019-06-19 | 73 |\n| `package/RScompiler.3.2.min.js` | 1357 KB | 2024-01-09 | 28 |\n| `package/RSrun.3.2.min.js` | 107 KB | 2022-08-04 | 4 |\n| `lib/plotly.js` | 5821 KB | 2018-08-09 | 3 |\n| `lib/ace/ace.js` | 529 KB | 2022-03-18 | 8 |\n\n## Proposal — three tiers\n\n**1. Frozen release lines** — `expiration: 365d` per handler, today. `glow.3.1` and older have not changed in 4+ years; a new release gets a new filename. Zero risk.\n\n**2. Vendored third-party** — `lib/ace`, `lib/jquery`, `lib/plotly.js`. Versioned by directory or frozen since 2018, and not ours to modify. Same treatment.\n\n**3. The current dev line** (`glow.3.2.min.js`, `RScompiler.3.2.min.js`) — where the 158 MB actually is, and the one that cannot take a long TTL as-is. Needs a content-derived URL so it changes when the bytes do. More work, and worth doing separately.\n\nTiers 1 and 2 are a few lines of YAML and take a real bite out of egress on their own.\n\n## Not a CDN problem\n\nWorth stating so nobody reaches for the wrong tool: GAE already serves these from Google's edge. Unlike the Cloud Run deploys, no CDN needs adding — the only thing missing is the cache policy.\n\nFound while investigating unrelated `/google/auth` 500s (#210 / #211).","author":{"url":"https://github.com/sspickle","@type":"Person","name":"sspickle"},"datePublished":"2026-09-06T12:33:53Z","url":"https://github.com/vpython/glowscript/issues/212"}

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:15717718-84d9-9643-da34-2f767f31684d
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-id817A:215B38:69F08F:902D1F:6B0077C1
html-safe-nonce51bf7842f05dbe03fdf93d6fe48f0240d563c92db8b2894098ddf931e3227675
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4MTdBOjIxNUIzODo2OUYwOEY6OTAyRDFGOjZCMDA3N0MxIiwidmlzaXRvcl9pZCI6IjMyODU1NTA3NTIzMTA3ODU5ODUiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac360ed267dfa522cf7ffc5523a8650978cc04f5c0650d8449eaff22f1671a92d3
hovercard-subject-tagissue:5364965800
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/vpython/glowscript/212/issue_layout
twitter:imagehttps://opengraph.githubassets.com/4aea7c768700dd503573c768219a6d93ff069d9c5481bedae3093a0027b5fa6d/vpython/glowscript/issues/212
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/4aea7c768700dd503573c768219a6d93ff069d9c5481bedae3093a0027b5fa6d/vpython/glowscript/issues/212
og:image:altapp.yaml sets no default_expiration and no per-handler expiration:, so GAE applies its default of 10 minutes to every static file: $ curl -sI https://www.glowscript.org/package/glow.3.2.min.js | gr...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamesspickle
hostnamegithub.com
expected-hostnamegithub.com
None75c2b65dd205f26961d0c29afed1a8d0bb7cca9f05780571dfd1ef93eb539d16
turbo-cache-controlno-preview
go-importgithub.com/vpython/glowscript git https://github.com/vpython/glowscript.git
octolytics-dimension-user_id1280757
octolytics-dimension-user_loginvpython
octolytics-dimension-repository_id187905631
octolytics-dimension-repository_nwovpython/glowscript
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id187905631
octolytics-dimension-repository_network_root_nwovpython/glowscript
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release84e563eb4b55f8fa102f325f117533cee9e3df4a
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/vpython/glowscript/issues/212#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fvpython%2Fglowscript%2Fissues%2F212
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fvpython%2Fglowscript%2Fissues%2F212
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=vpython%2Fglowscript
Reloadhttps://github.com/vpython/glowscript/issues/212
Reloadhttps://github.com/vpython/glowscript/issues/212
Reloadhttps://github.com/vpython/glowscript/issues/212
vpythonhttps://github.com/vpython
glowscripthttps://github.com/vpython/glowscript
Codehttps://github.com/vpython/glowscript
Issues9 (9)https://github.com/vpython/glowscript/issues
Pull requests2 (2)https://github.com/vpython/glowscript/pulls
Actionshttps://github.com/vpython/glowscript/actions
Projectshttps://github.com/vpython/glowscript/projects
Security and qualityhttps://github.com/vpython/glowscript/security
Insightshttps://github.com/vpython/glowscript/insights
https://github.com/vpython/glowscript
New issuehttps://github.com/login?return_to=https://github.com/vpython/glowscript/issues/212
New issuehttps://github.com/login?return_to=https://github.com/vpython/glowscript/issues/212
Static assets are served with a 10-minute TTL: every user re-downloads ~4 MB of unchanged JS all dayhttps://github.com/vpython/glowscript/issues/212#top
https://github.com/sspickle
sspicklehttps://github.com/sspickle
on Sep 6, 2026https://github.com/vpython/glowscript/issues/212#issue-5364965800
#210https://github.com/vpython/glowscript/issues/210
#211https://github.com/vpython/glowscript/pull/211
Sign up for freehttps://github.com/signup?return_to=https://github.com/vpython/glowscript/issues/212
Sign in to commenthttps://github.com/login?return_to=https://github.com/vpython/glowscript/issues/212
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.