Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 10 additions & 10 deletions config/last_updated.json
Original file line number Diff line number Diff line change
Expand Up @@ -111,8 +111,8 @@
},
"/static/js/histogram.js": {
"date_published": "2018-05-08T00:00:00.000Z",
"date_modified": "2025-06-02T00:00:00.000Z",
"hash": "58efe705af1fb94fe47af02ffa19fa95"
"date_modified": "2025-12-07T00:00:00.000Z",
"hash": "762edb2f242b0c9275f64963596288a7"
},
"/static/js/index.js": {
"date_published": "2018-05-08T00:00:00.000Z",
Expand Down Expand Up @@ -166,23 +166,23 @@
},
"/static/js/techreport.js": {
"date_published": "2023-10-09T00:00:00.000Z",
"date_modified": "2025-10-16T00:00:00.000Z",
"hash": "0621955a4fd4c1b61e59d19b4efcb38c"
"date_modified": "2025-12-07T00:00:00.000Z",
"hash": "f1d524a0c3936491e48e422013548e03"
},
"/static/js/techreport/section.js": {
"date_published": "2023-10-09T00:00:00.000Z",
"date_modified": "2025-08-18T00:00:00.000Z",
"hash": "1775005cbf8d70f6fc4974781b7e1b51"
"date_modified": "2025-12-07T00:00:00.000Z",
"hash": "ccd53f137a4aa746f70dd6c90428db3b"
},
"/static/js/techreport/timeseries.js": {
"date_published": "2023-10-09T00:00:00.000Z",
"date_modified": "2025-10-15T00:00:00.000Z",
"hash": "66106fc8e5a8ae322d813311e6366657"
"date_modified": "2025-12-07T00:00:00.000Z",
"hash": "fffa299ba030c83dbac35f5f81703ce5"
},
"/static/js/timeseries.js": {
"date_published": "2018-05-08T00:00:00.000Z",
"date_modified": "2025-06-05T00:00:00.000Z",
"hash": "88e02e130b048bdbc7797a3c5c369d6d"
"date_modified": "2025-12-07T00:00:00.000Z",
"hash": "626181398990a64da615b1ab1e5737d3"
},
"/static/js/web-vitals.js": {
"date_published": "2022-01-03T00:00:00.000Z",
Expand Down
12 changes: 11 additions & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions server/csp.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@
"spdcrv.global.ssl.fastly.net",
"lux.speedcurve.com",
"'unsafe-inline'",
"reports-dev-2vzgiib6.uc.gateway.dev",
"reports-prod-2vzgiib6.uc.gateway.dev",
],
"font-src": ["'self'"],
"connect-src": [
Expand Down
2 changes: 1 addition & 1 deletion src/js/components/drilldownHeader.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ function setTitle(title) {

function setIcon(icon) {
const img = document.querySelector('h1 .title-img');
const imgUrl = `https://cdn.httparchive.org/static/icons/${icon}`;
const imgUrl = `https://reports-prod-2vzgiib6.uc.gateway.dev/v1/static/icons/${icon}`;
img.setAttribute('style', `background-image: url(${imgUrl})`);
}

Expand Down
2 changes: 1 addition & 1 deletion src/js/histogram.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ const [COLOR_DESKTOP, COLOR_MOBILE, COLOR_DESKTOP_ALT, COLOR_MOBILE_ALT] = Color
function histogram(metric, date, options) {
options.date = date;
options.metric = metric;
const dataUrl = `https://cdn.httparchive.org/reports/${options.lens ? `${options.lens.id}/` : ''}${date}/${metric}.json`;
const dataUrl = `https://reports-prod-2vzgiib6.uc.gateway.dev/v1/static/reports/${options.lens ? `${options.lens.id}/` : ''}${date}/${metric}.json`;
fetch(dataUrl)
.then(response => {
if (!response.ok) {
Expand Down
4 changes: 2 additions & 2 deletions src/js/techreport/combobox.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ class ComboBox {
option.id = `${this.element.dataset.id}-${row.technology.replaceAll(' ','-')}`;
const logo = document.createElement('img');
logo.setAttribute('alt', '');
logo.setAttribute('src', `https://cdn.httparchive.org/static/icons/${icon}`);
logo.setAttribute('src', `https://reports-prod-2vzgiib6.uc.gateway.dev/v1/static/icons/${icon}`);
logo.setAttribute('loading', 'lazy');
option.append(logo);
if(this.selected.includes(row.technology)) {
Expand Down Expand Up @@ -200,7 +200,7 @@ class ComboBox {

/* Add the app logo */
const appIcon = document.createElement('img');
appIcon.setAttribute('src', `https://cdn.httparchive.org/static/icons/${encodeURI(icon)}`);
appIcon.setAttribute('src', `https://reports-prod-2vzgiib6.uc.gateway.dev/v1/static/icons/${encodeURI(icon)}`);
appIcon.setAttribute('alt', '');
appIcon.classList.add('logo');
deleteSelection.append(appIcon);
Expand Down
2 changes: 1 addition & 1 deletion src/js/techreport/tableLinked.js
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ class TableLinked {
wrapper.classList.add('app-wrapper');

const img = document.createElement('span');
const imgUrl = `https://cdn.httparchive.org/static/icons/${encodeURI(technology[0]?.icon)}`;
const imgUrl = `https://reports-prod-2vzgiib6.uc.gateway.dev/v1/static/icons/${encodeURI(technology[0]?.icon)}`;
img.setAttribute('aria-hidden', 'true');
img.setAttribute('style', `background-image: url(${imgUrl})`);
img.classList.add('app-img');
Expand Down
2 changes: 1 addition & 1 deletion src/js/timeseries.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import { el, prettyDate, chartExportOptions, drawMetricSummary, callOnceWhenVisi


function timeseries(metric, options, start, end) {
const dataUrl = `https://cdn.httparchive.org/reports/${options.lens ? `${options.lens.id}/` : ''}${metric}.json`;
const dataUrl = `https://reports-prod-2vzgiib6.uc.gateway.dev/v1/static/reports/${options.lens ? `${options.lens.id}/` : ''}${metric}.json`;
options.chartId = `${metric}-chart`;
options.tableId = `${metric}-table`;
options.metric = metric;
Expand Down
2 changes: 1 addition & 1 deletion templates/report/report.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
{% block head %}
{{ super() }}
<link rel="stylesheet" href="{{ get_versioned_filename('/static/css/report.css') }}" />
<link rel="preconnect" href="https://cdn.httparchive.org" />
<link rel="preconnect" href="https://reports-prod-2vzgiib6.uc.gateway.dev" />
<link rel="canonical" href="https://httparchive.org{{ request.path }}" />
{% endblock %}

Expand Down
32 changes: 16 additions & 16 deletions tools/scripts/test_reports.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,20 +22,20 @@ LENSES="drupal magento wordpress top1k top10k top100k top1m"
# These dated report URLs are tested for 200 status
# We test the first and last report for each lens
REPORT_MONTHLY_URLS=$(cat <<-END
https://cdn.httparchive.org/reports/${REPORT_DATE}/bootupJs.json
https://cdn.httparchive.org/reports/${REPORT_DATE}/tcp.json
https://cdn.httparchive.org/reports/${CRUX_REPORT_DATE}/cruxCls.json
https://cdn.httparchive.org/reports/${CRUX_REPORT_DATE}/cruxOl.json
https://reports-prod-2vzgiib6.uc.gateway.dev/v1/static/reports/${REPORT_DATE}/bootupJs.json
https://reports-prod-2vzgiib6.uc.gateway.dev/v1/static/reports/${REPORT_DATE}/tcp.json
https://reports-prod-2vzgiib6.uc.gateway.dev/v1/static/reports/${CRUX_REPORT_DATE}/cruxCls.json
https://reports-prod-2vzgiib6.uc.gateway.dev/v1/static/reports/${CRUX_REPORT_DATE}/cruxOl.json
END
)

for LENS in ${LENSES}
do
REPORT_MONTHLY_URLS_LENS=$(cat <<-END
https://cdn.httparchive.org/reports/${LENS}/${REPORT_DATE}/bootupJs.json
https://cdn.httparchive.org/reports/${LENS}/${REPORT_DATE}/tcp.json
https://cdn.httparchive.org/reports/${LENS}/${CRUX_REPORT_DATE}/cruxCls.json
https://cdn.httparchive.org/reports/${LENS}/${CRUX_REPORT_DATE}/cruxOl.json
https://reports-prod-2vzgiib6.uc.gateway.dev/v1/static/reports/${LENS}/${REPORT_DATE}/bootupJs.json
https://reports-prod-2vzgiib6.uc.gateway.dev/v1/static/reports/${LENS}/${REPORT_DATE}/tcp.json
https://reports-prod-2vzgiib6.uc.gateway.dev/v1/static/reports/${LENS}/${CRUX_REPORT_DATE}/cruxCls.json
https://reports-prod-2vzgiib6.uc.gateway.dev/v1/static/reports/${LENS}/${CRUX_REPORT_DATE}/cruxOl.json
END
)
REPORT_MONTHLY_URLS="${REPORT_MONTHLY_URLS} ${REPORT_MONTHLY_URLS_LENS}"
Expand All @@ -45,16 +45,16 @@ done
# These timeseries URLs are tested if the date exists in the returned body
# We test the first and last report for each lens
TIMESERIES_URLS=$(cat <<-END
https://cdn.httparchive.org/reports/numUrls.json
https://cdn.httparchive.org/reports/a11yButtonName.json
https://reports-prod-2vzgiib6.uc.gateway.dev/v1/static/reports/numUrls.json
https://reports-prod-2vzgiib6.uc.gateway.dev/v1/static/reports/a11yButtonName.json
END
)

for LENS in ${LENSES}
do
TIMESERIES_URLS_LENS=$(cat <<-END
https://cdn.httparchive.org/reports/${LENS}/numUrls.json
https://cdn.httparchive.org/reports/${LENS}/a11yButtonName.json
https://reports-prod-2vzgiib6.uc.gateway.dev/v1/static/reports/${LENS}/numUrls.json
https://reports-prod-2vzgiib6.uc.gateway.dev/v1/static/reports/${LENS}/a11yButtonName.json
END
)
TIMESERIES_URLS="${TIMESERIES_URLS} ${TIMESERIES_URLS_LENS}"
Expand All @@ -64,16 +64,16 @@ done
# For CrUX we always test the month before (unless an explicit date was passed)
# We test the first and last report
CRUX_TIMESERIES_URLS=$(cat <<-END
https://cdn.httparchive.org/reports/cruxFastDcl.json
https://cdn.httparchive.org/reports/cruxSmallCls.json
https://reports-prod-2vzgiib6.uc.gateway.dev/v1/static/reports/cruxFastDcl.json
https://reports-prod-2vzgiib6.uc.gateway.dev/v1/static/reports/cruxSmallCls.json
END
)

for LENS in ${LENSES}
do
CRUX_TIMESERIES_URLS_LENS=$(cat <<-END
https://cdn.httparchive.org/reports/${LENS}/cruxFastDcl.json
https://cdn.httparchive.org/reports/${LENS}/cruxSmallCls.json
https://reports-prod-2vzgiib6.uc.gateway.dev/v1/static/reports/${LENS}/cruxFastDcl.json
https://reports-prod-2vzgiib6.uc.gateway.dev/v1/static/reports/${LENS}/cruxSmallCls.json
END
)
CRUX_TIMESERIES_URLS="${CRUX_TIMESERIES_URLS} ${CRUX_TIMESERIES_URLS_LENS}"
Expand Down
Loading