diff --git a/.github/workflows/predeploy.yml b/.github/workflows/predeploy.yml index 165f79587f3..1458151fcbb 100644 --- a/.github/workflows/predeploy.yml +++ b/.github/workflows/predeploy.yml @@ -14,7 +14,7 @@ name: Predeploy script env: # Update periodically from https://www.princexml.com/latest/ - PRINCE_PACKAGE: 'prince_20250207-1_ubuntu24.04_amd64.deb' + PRINCE_PACKAGE: 'prince_16.1-1_ubuntu24.04_arm64.deb' on: workflow_dispatch: diff --git a/src/content/en/2021/caching.md b/src/content/en/2021/caching.md index d3d7922d647..9545a9ba946 100644 --- a/src/content/en/2021/caching.md +++ b/src/content/en/2021/caching.md @@ -119,40 +119,43 @@ When using the `Cache-Control` header, you specify one or more _directives_—pr Below is a table showing the most common `Cache-Control` directives: -
| Directive | -Description | -
|---|---|
max-age |
- Indicates the number of seconds that a resource can be cached for relative to the current time. For example, max-age=86400. |
-
public |
- Indicates that any cache can store the response, including the browser and the CDN. This is assumed by default. | -
no-cache |
- A cached resource must be revalidated before its use, via a conditional request, even if it is not marked as stale. | -
must-revalidate |
- A stale cached entry must be revalidated before its use, via a conditional request. | -
no-store |
- Indicates that the response must not be cached. | -
private |
- The response is intended for a specific user and should not be stored by shared caches such as CDNs. | -
immutable |
- Indicates that the cached entry will never change during its TTL, and that revalidation is not necessary. | -
| Directive | +Description | +
|---|---|
max-age |
+ Indicates the number of seconds that a resource can be cached for relative to the current time. For example, max-age=86400. |
+
public |
+ Indicates that any cache can store the response, including the browser and the CDN. This is assumed by default. | +
no-cache |
+ A cached resource must be revalidated before its use, via a conditional request, even if it is not marked as stale. | +
must-revalidate |
+ A stale cached entry must be revalidated before its use, via a conditional request. | +
no-store |
+ Indicates that the response must not be cached. | +
private |
+ The response is intended for a specific user and should not be stored by shared caches such as CDNs. | +
immutable |
+ Indicates that the cached entry will never change during its TTL, and that revalidation is not necessary. | +
Cache-Control directives.") }}| All Sites | ||||||||
|---|---|---|---|---|---|---|---|---|
| + | desktop | mobile | desktop | diff --git a/src/content/en/2024/security.md b/src/content/en/2024/security.md index 8c641b004cb..a1147967a19 100644 --- a/src/content/en/2024/security.md +++ b/src/content/en/2024/security.md @@ -1425,7 +1425,7 @@ For CMS's that can be easily self-hosted such as Plone or Wagtail, it is more di Large websites often have a high number of visitors and registered users, of which they might store highly sensitive data. This means they likely attract more attackers and are thus more prone to targeted attacks. Additionally, when an attack succeeds, these websites could be fined or sued, costing them money and/or reputational damage. Therefore, it can be expected that popular websites invest more in their security to secure their users. {{ figure_markup( - image="security-headeers-by-rank.png", + image="security-headers-by-rank.png", caption="Security header adoption by website rank according to the April 2024 CrUX.", description="Bar chart showing in top 1,000 sites, 64% have XFO, 60% have HSTS and 56% have X-Content-Type-Options headers. In top 10,000, 54% have XFO, 46% have HSTS and 54% have X-Content-Type-Options headers. In top 100,000, 51% have XFO, 42% have HSTS and 50% have X-Content-Type-Options headers. In top 1,000,000, 45% have XFO, 36% have HSTS and 47% have X-Content-Type-Options headers. Among all sites, 29% have XFO, 31% have HSTS and 43% have X-Content-Type-Options.", chart_url="https://docs.google.com/spreadsheets/d/e/2PACX-1vTxTTMlFFSMT3mZgw2awA0wl3F68gzU1OLuyMaZXscSFq-Pa5ev_qTXx8ZaGEOl_ox_aHsraAGMXZ9Y/pubchart?oid=256464807&format=interactive", diff --git a/src/content/en/2024/sustainability.md b/src/content/en/2024/sustainability.md index 74c4c9b0b7d..4364823fe39 100644 --- a/src/content/en/2024/sustainability.md +++ b/src/content/en/2024/sustainability.md @@ -27,7 +27,7 @@ doi: 10.5281/zenodo.14065377 ## Introduction -In the current chapter, we will rely as much as possible on [the 2022 Sustainability chapter](./../2022/sustainability). If you haven't yet, you should read it right now. Yes, recycling/reusing is a major part of sustainability. +In the current chapter, we will rely as much as possible on [the 2022 Sustainability chapter](../2022/sustainability). If you haven't yet, you should read it right now. Yes, recycling/reusing is a major part of sustainability. Since the 2022 Almanac, the field of digital sustainability has advanced considerably. That said, it is very much in its infancy, as this is a complex problem. We cannot know, with absolute certainty, what the full effects of our digital lives are on our physical planet. What we can be confident in is that the full impacts are bigger than generally accounted for. Water, land, rare minerals, and electricity are all consumed by our "clean" digital interfaces, and toxic waste is often produced. @@ -630,7 +630,7 @@ Automatically preloading videos is a concern for web sustainability. This practi sql_file="video_preload_values.sql" ) }} -Comparing the usage of the preload attribute between [2022](./../2022/sustainability) and 2024, we observe some changes. The percentage of websites not using preload has slightly decreased, from 58% to 55% on desktop and from 60% to 56% on mobile. This shift suggests a small increase in the use of preload attributes, which could have implications for sustainability. +Comparing the usage of the preload attribute between [2022](../2022/sustainability) and 2024, we observe some changes. The percentage of websites not using preload has slightly decreased, from 58% to 55% on desktop and from 60% to 56% on mobile. This shift suggests a small increase in the use of preload attributes, which could have implications for sustainability. It's important to remember that the preload attribute only has three valid values: none, auto, and metadata (default). Using the preload attribute with no value or an incorrect value may be interpreted as 'metadata', which can still involve loading up to 3% of the video to retrieve metadata. From a sustainability standpoint, 'none' remains the most environmentally friendly option. @@ -653,7 +653,7 @@ It's important to note that the autoplay attribute can override preload settings sql_file="video_autoplay_values.sql" ) }} -Comparing the usage of autoplay between [2022](./../2022/sustainability) and 2024, we see some notable changes. The percentage of websites explicitly not using autoplay has decreased, from 53% to 45% on desktop and from 53% to 45% on mobile. This could be a concern for sustainability efforts. Also, we notice a slight increase for websites using an empty value for this attribute, which also triggers autoplay (and is bad for sustainability). +Comparing the usage of autoplay between [2022](../2022/sustainability) and 2024, we see some notable changes. The percentage of websites explicitly not using autoplay has decreased, from 53% to 45% on desktop and from 53% to 45% on mobile. This could be a concern for sustainability efforts. Also, we notice a slight increase for websites using an empty value for this attribute, which also triggers autoplay (and is bad for sustainability). It's crucial to remember that autoplay is a Boolean attribute, meaning its presence, even with an empty value, triggers autoplay behavior. The combined percentage of explicit autoplay usage (including `autoplay`, `TRUE` and other values) has remained relatively stable, around 8% for both desktop and mobile. @@ -888,7 +888,7 @@ For further information, refer to: sql_file="stylesheet_count.sql" ) }} -When we compare this year's data to [2022 data](./../2022/sustainability) we can see the following: +When we compare this year's data to [2022 data](../2022/sustainability) we can see the following: 1. Increase in inline stylesheet usage: - Desktop: from 25% in 2022 to 31% in 2024. - Mobile: from 25% in 2022 to 32% in 2024. diff --git a/src/content/en/2025/pwa.md b/src/content/en/2025/pwa.md index 3a9f92c0937..0db64909e2e 100644 --- a/src/content/en/2025/pwa.md +++ b/src/content/en/2025/pwa.md @@ -161,7 +161,8 @@ Let's examine how individual members rate in the totality of manifest files scan|||||
| Manifest field | -Sites | +Desktop | +Mobile | |||||
| ディレクティブ | -説明 | -
|---|---|
max-age |
- 現在時刻を基準として、リソースのキャッシュが可能な秒数を示す。たとえば、max-age=86400などです。 |
-
public |
- ブラウザや CDN を含む、任意のキャッシュが応答を保存できることを示します。これはデフォルトで想定されています。 | -
no-cache |
- キャッシュされたリソースは、たとえそれが古いとマークされていなくても、使用前に条件付きリクエストによって再検証されなければならない。 | -
must-revalidate |
- キャッシュされた古いエントリは、使用前に条件付きリクエストによって再検証されなければならない。 | -
no-store |
- レスポンスがキャッシュされてはならないことを示す。 | -
private |
- このレスポンスは特定のユーザーを対象としたものであり、CDNなどの共有キャッシュに保存されるべきものではありません。 | -
immutable |
- キャッシュされたエントリがその TTL の間、決して変更されず、再バリデーションが必要ないことを示す。 | -
| ディレクティブ | +説明 | +
|---|---|
max-age |
+ 現在時刻を基準として、リソースのキャッシュが可能な秒数を示す。たとえば、max-age=86400などです。 |
+
public |
+ ブラウザや CDN を含む、任意のキャッシュが応答を保存できることを示します。これはデフォルトで想定されています。 | +
no-cache |
+ キャッシュされたリソースは、たとえそれが古いとマークされていなくても、使用前に条件付きリクエストによって再検証されなければならない。 | +
must-revalidate |
+ キャッシュされた古いエントリは、使用前に条件付きリクエストによって再検証されなければならない。 | +
no-store |
+ レスポンスがキャッシュされてはならないことを示す。 | +
private |
+ このレスポンスは特定のユーザーを対象としたものであり、CDNなどの共有キャッシュに保存されるべきものではありません。 | +
immutable |
+ キャッシュされたエントリがその TTL の間、決して変更されず、再バリデーションが必要ないことを示す。 | +
Cache-Controlディレクティブ。") }}| + | デスクトップ | モバイル | デスクトップ | diff --git a/src/content/ja/2024/http.md b/src/content/ja/2024/http.md index 9f5e7b8b6cf..4cf5fb46ca6 100644 --- a/src/content/ja/2024/http.md +++ b/src/content/ja/2024/http.md @@ -201,7 +201,7 @@ Web Almanacデータセットで実際のHTTP/3のサポートを正しく把握 しかし、SVCBに関する完全な議論はここでは時間がかかりすぎるため、新しいHTTPSレコードを介してHTTP/3のサポートをアナウンスする方法にのみ焦点を当てます。他のブログ投稿やドキュメント、詳細がより広いアプリケーションについて書かれているものがたくさんあるためです。実際のHTTPSレコードの例を見てみましょう。 {{ figure_markup( - image="dns-httpshttps-example.jpg", + image="dns-https-example.jpg", caption="DNS HTTPSリソースレコードの例。", description="`dig`コマンドラインツールからのスクリーンショット。DNS HTTPSレコードが`alpn` `h3`と`h2`をリストし、`blog.cloudflare.com`のipv4hintとipv6hintの両方を提供していることを示しています。", width=1415, diff --git a/src/content/ja/2024/sustainability.md b/src/content/ja/2024/sustainability.md index 3511132f5e8..38d9ef30269 100644 --- a/src/content/ja/2024/sustainability.md +++ b/src/content/ja/2024/sustainability.md @@ -27,7 +27,7 @@ doi: 10.5281/zenodo.14065377 ## 序章 -この章では、可能な限り[2022年のサステナビリティの章](./../2022/sustainability)を参考にします。まだ読んでいない方は、今すぐ読んでください。そう、リサイクルや再利用はサステナビリティの重要な一部なのです。 +この章では、可能な限り[2022年のサステナビリティの章](../2022/sustainability)を参考にします。まだ読んでいない方は、今すぐ読んでください。そう、リサイクルや再利用はサステナビリティの重要な一部なのです。 2022年のAlmanac以降、デジタルサステナビリティの分野はかなり進歩しました。とはいえ、これは複雑な問題であるため、まだ初期段階にあります。私たちのデジタルライフが物理的な地球に与える影響の全容を、絶対的な確実性をもって知ることはできません。私たちが確信できるのは、その影響の全容は一般的に考えられているよりも大きいということです。水、土地、希少鉱物、そして電力はすべて、私たちの「クリーンな」デジタルインターフェースによって消費され、有毒廃棄物もしばしば生産されます。 @@ -630,7 +630,7 @@ CSSには、アニメーションやトランジションなど、追加の排 sql_file="video_preload_values.sql" ) }} -[2022年](./../2022/sustainability)と2024年のプリロード属性の使用状況を比較すると、いくつかの変化が見られます。プリロードを使用していないウェブサイトの割合は、デスクトップで58%から55%に、モバイルで60%から56%にわずかに減少しました。この変化は、プリロード属性の使用がわずかに増加したことを示唆しており、持続可能性に影響を与える可能性があります。 +[2022年](../2022/sustainability)と2024年のプリロード属性の使用状況を比較すると、いくつかの変化が見られます。プリロードを使用していないウェブサイトの割合は、デスクトップで58%から55%に、モバイルで60%から56%にわずかに減少しました。この変化は、プリロード属性の使用がわずかに増加したことを示唆しており、持続可能性に影響を与える可能性があります。 プリロード属性には、none、auto、metadata(デフォルト)の3つの有効な値しかないことを覚えておくことが重要です。値なしまたは不正な値でプリロード属性を使用すると、「metadata」と解釈される可能性があり、メタデータを取得するために動画の最大3%を読み込む可能性があります。持続可能性の観点から、「none」がもっとも環境に優しいオプションであり続けます。 @@ -653,7 +653,7 @@ CSSには、アニメーションやトランジションなど、追加の排 sql_file="video_autoplay_values.sql" ) }} -[2022年](./../2022/sustainability)と2024年の自動再生の使用状況を比較すると、いくつかの注目すべき変化が見られます。自動再生を明示的に使用していないウェブサイトの割合は、デスクトップで53%から45%に、モバイルで53%から45%に減少しました。これは、持続可能性への取り組みにとって懸念事項となる可能性があります。また、この属性に空の値を使用するウェブサイトがわずかに増加していることに気づきます。これも自動再生をトリガーし(持続可能性には悪影響です)、持続可能性には悪影響です。 +[2022年](../2022/sustainability)と2024年の自動再生の使用状況を比較すると、いくつかの注目すべき変化が見られます。自動再生を明示的に使用していないウェブサイトの割合は、デスクトップで53%から45%に、モバイルで53%から45%に減少しました。これは、持続可能性への取り組みにとって懸念事項となる可能性があります。また、この属性に空の値を使用するウェブサイトがわずかに増加していることに気づきます。これも自動再生をトリガーし(持続可能性には悪影響です)、持続可能性には悪影響です。 自動再生はブール属性であり、その存在は、空の値であっても、自動再生動作をトリガーすることを覚えておくことが重要です。明示的な自動再生の使用(`autoplay`、`TRUE`、その他の値を含む)の合計割合は、デスクトップとモバイルの両方で約8%で比較的安定しています。 @@ -888,7 +888,7 @@ JavaScriptとCSSをHTMLに直接インライン化する慣行は、HTMLファ sql_file="stylesheet_count.sql" ) }} -今年のデータを[2022年のデータ](./../2022/sustainability)と比較すると、次のことがわかります。 +今年のデータを[2022年のデータ](../2022/sustainability)と比較すると、次のことがわかります。 1. インラインスタイルシートの使用の増加: - デスクトップ:2022年の25%から2024年には31%に。 - モバイル:2022年の25%から2024年には32%に。 diff --git a/src/server/helpers.py b/src/server/helpers.py index d0ba416b884..391b66f1d5c 100644 --- a/src/server/helpers.py +++ b/src/server/helpers.py @@ -277,6 +277,9 @@ def get_ebook_methodology(lang, year): ) # Remove lazy-loading attributes methodology_maincontent = re.sub(' loading="lazy"', "", methodology_maincontent) + # Remove table wrappers + methodology_maincontent = re.sub('
|---|
$1
'); // Replace current chapter header ids to full id (e.g.