Skip to content

Commit

Permalink
More LH audit fixes (#3579)
Browse files Browse the repository at this point in the history
* USes third-party cookies

* More LH audit fixes

* Fix table issue
  • Loading branch information
tunetheweb authored Feb 22, 2024
1 parent 9280db6 commit 02540fa
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 11 deletions.
2 changes: 2 additions & 0 deletions .github/lighthouse/lighthouse-config-dev.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,10 @@
"service-worker": "off",
"speed-index": "off",
"splash-screen": "off",
"target-size": "off",
"td-has-header": "off",
"themed-omnibox": "off",
"third-party-cookies": "off",
"third-party-facades": "off",
"total-byte-weight": "off",
"unminified-css": "off",
Expand Down
2 changes: 2 additions & 0 deletions .github/lighthouse/lighthouse-config-prod.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,10 @@
"service-worker": "off",
"speed-index": "off",
"splash-screen": "off",
"target-size": "off",
"td-has-header": "off",
"themed-omnibox": "off",
"third-party-cookies": "off",
"third-party-facades": "off",
"total-byte-weight": "off",
"unminified-css": "off",
Expand Down
5 changes: 1 addition & 4 deletions src/content/en/2020/caching.md
Original file line number Diff line number Diff line change
Expand Up @@ -694,9 +694,6 @@ The table below details the cache TTL values for mobile requests by type:
<figure>
<table>
<thead>
<tr>
<th colspan="6" scope="col">Cache TTL percentiles (in hours)</th>
</tr>
<tr>
<th scope="col">Type</th>
<th scope="col">10</th>
Expand Down Expand Up @@ -789,7 +786,7 @@ The table below details the cache TTL values for mobile requests by type:
</tr>
</tbody>
</table>
<figcaption>{{ figure_link(caption="Mobile cache TTL percentiles by resource type.", sheets_gid="676954337", sql_file="ttl_by_resource.sql") }}</figcaption>
<figcaption>{{ figure_link(caption="Mobile cache TTL hours by percentiles and resource type.", sheets_gid="676954337", sql_file="ttl_by_resource.sql") }}</figcaption>
</figure>

While most of the median TTLs are high, the lower percentiles highlight some of the missed caching opportunities. For example, the median TTL for images is 720 hours (1 month); however the 25<sup>th</sup> percentile is just 168 hours (1 week) and the 10<sup>th</sup> percentile has dropped to just a few hours. Compare this with fonts, which have a very high TTL of 8,760 hours (1 year) all the way down to the 25<sup>th</sup> percentile, with even the 10<sup>th</sup> percentile showing a TTL of 1 month.
Expand Down
3 changes: 0 additions & 3 deletions src/content/ja/2020/caching.md
Original file line number Diff line number Diff line change
Expand Up @@ -694,9 +694,6 @@ HTTPレスポンスの43.4%がVaryヘッダーを使用しており、その
<figure>
<table>
<thead>
<tr>
<th colspan="6" scope="col">キャッシュのTTLパーセンタイル(単位:時間)</th>
</tr>
<tr>
<th scope="col">タイプ</th>
<th scope="col">10</th>
Expand Down
5 changes: 1 addition & 4 deletions src/content/nl/2020/caching.md
Original file line number Diff line number Diff line change
Expand Up @@ -694,9 +694,6 @@ In de onderstaande tabel worden de cache-TTL-waarden voor mobiele verzoeken per
<figure>
<table>
<thead>
<tr>
<th colspan="6" scope="col">TTL-percentielen in cache (in uren)</th>
</tr>
<tr>
<th scope="col">Type</th>
<th scope="col">10</th>
Expand Down Expand Up @@ -789,7 +786,7 @@ In de onderstaande tabel worden de cache-TTL-waarden voor mobiele verzoeken per
</tr>
</tbody>
</table>
<figcaption>{{ figure_link(caption="TTL-percentielen voor mobiele cache per brontype.", sheets_gid="676954337", sql_file="ttl_by_resource.sql") }}</figcaption>
<figcaption>{{ figure_link(caption="TTL in uren voor mobiele cache per percentielen en brontype.", sheets_gid="676954337", sql_file="ttl_by_resource.sql") }}</figcaption>
</figure>

Hoewel de meeste mediane TTL's hoog zijn, benadrukken de lagere percentielen enkele van de gemiste cachemogelijkheden. De mediane TTL voor afbeeldingen is bijvoorbeeld 720 uur (1 maand); het 25<sup>e</sup> percentiel is echter slechts 168 uur (1 week) en het 10<sup>de</sup> percentiel is gedaald tot slechts een paar uur. Vergelijk dit met lettertypen, die een zeer hoge TTL hebben van 8.760 uur (1 jaar) helemaal tot aan het 25<sup>e</sup> percentiel, waarbij zelfs het 10<sup>de</sup> percentiel een TTL van 1 maand laat zien.
Expand Down

0 comments on commit 02540fa

Please sign in to comment.