Serve static asset from an API Gateway endpoint#1167
Merged
max-ostapenko merged 4 commits intomainfrom Dec 6, 2025
Merged
Conversation
…chive.org into zestful-urial
There was a problem hiding this comment.
Pull request overview
This PR migrates static asset and report data URLs from the legacy CDN (cdn.httparchive.org) to a new Google Cloud Gateway endpoint (reports-prod-2vzgiib6.uc.gateway.dev). The migration ensures all frontend code, tests, and security policies reference the new endpoint.
Key changes:
- Updated all JavaScript files to fetch report data and icons from the new Google Cloud Gateway endpoint
- Modified Content Security Policy to allow requests to both development and production gateway endpoints
- Updated test scripts to validate report availability on the new endpoint
Reviewed changes
Copilot reviewed 9 out of 10 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| tools/scripts/test_reports.sh | Updated test URLs to validate reports on the new gateway endpoint for monthly, timeseries, and CrUX reports |
| templates/report/report.html | Changed preconnect link to new gateway endpoint for performance optimization |
| src/js/timeseries.js | Migrated timeseries report data URL to new gateway endpoint |
| src/js/histogram.js | Updated histogram report data URL to new gateway endpoint |
| src/js/techreport/tableLinked.js | Changed icon URL reference to new gateway endpoint |
| src/js/techreport/combobox.js | Updated icon URLs in dropdown options to new gateway endpoint |
| src/js/components/drilldownHeader.js | Modified icon URL for drilldown header to new gateway endpoint |
| server/csp.py | Added both dev and prod gateway endpoints to Content Security Policy for script-src and connect-src directives |
| package-lock.json | Added "peer": true flags to various packages (appears unrelated to main PR purpose) |
| config/last_updated.json | Updated modification dates and hashes for affected JavaScript files |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This pull request migrates all static asset and report data URLs from the legacy CDN (
cdn.httparchive.org) to a new Google Cloud Gateway endpoint (reports-prod-2vzgiib6.uc.gateway.dev). This affects JavaScript, HTML templates, server configuration, and testing scripts to ensure all references and tests now use the new endpoint. Additionally, the Content Security Policy is updated to allow requests to the new domains.Key changes include:
Migration of asset and data URLs to new endpoint:
histogram.js,timeseries.js,techreport/combobox.js,techreport/tableLinked.js, anddrilldownHeader.js) now use the new Google Cloud Gateway endpoint instead of the old CDN.report.html) preconnects to the new endpoint for improved performance.Testing and configuration updates:
test_reports.sh) is updated to test against the new endpoint for both monthly and timeseries reports.last_updated.jsonconfig file is updated to reflect new hashes and modification dates for affected JavaScript assets.Security policy update:
server/csp.pyis updated to allow requests to both the production and development Google Cloud Gateway endpoints.