## 事象 事象は表題の通り。以下は調査結果。 ### 再起動 まずは[[Obsidian]]を再起動してもう一度アップデートしてみる。 変わらず。 ### `manifest.json`や`manifest-beta.json`を確認 [[🦉Silhouette]]の場合なら https://raw.githubusercontent.com/tadashi-aikawa/silhouette/HEAD/manifest-beta.json の結果が正しいかを確認する。 masterブランチの https://raw.githubusercontent.com/tadashi-aikawa/silhouette/master/manifest-beta.json と結果が異なる。 ### `manifest.json`と`manifest-beta.json`で結果が異なるか確認 - https://raw.githubusercontent.com/tadashi-aikawa/silhouette/HEAD/manifest-beta.json - https://raw.githubusercontent.com/tadashi-aikawa/silhouette/HEAD/manifest.json `manifest.json`は期待通りで、`manifest-beta.json`は期待通りではない。 ### ブラウザ上のファイルを確認 - https://raw.githubusercontent.com/tadashi-aikawa/silhouette/HEAD/manifest-beta.json - https://github.com/tadashi-aikawa/silhouette/blob/HEAD/manifest-beta.json を確認し、後者が期待通りで前者と異なる。 ### `curl`の結果を確認する ```console curl https://raw.githubusercontent.com/tadashi-aikawa/silhouette/HEAD/manifest-beta.json ``` の結果は期待通り。ブラウザと同じようにリクエストしたが結果は一緒だった。 ```bash curl 'https://raw.githubusercontent.com/tadashi-aikawa/silhouette/HEAD/manifest-beta.json' \ -H 'authority: raw.githubusercontent.com' \ -H 'accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.7' \ -H 'accept-language: ja,en-US;q=0.9,en;q=0.8' \ -H 'cache-control: no-cache' \ -H 'pragma: no-cache' \ -H 'sec-ch-ua: "Chromium";v="110", "Not A(Brand";v="24", "Google Chrome";v="110"' \ -H 'sec-ch-ua-mobile: ?0' \ -H 'sec-ch-ua-platform: "Windows"' \ -H 'sec-fetch-dest: document' \ -H 'sec-fetch-mode: navigate' \ -H 'sec-fetch-site: none' \ -H 'sec-fetch-user: ?1' \ -H 'upgrade-insecure-requests: 1' \ -H 'user-agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/110.0.0.0 Safari/537.36' ``` 一方、[[PowerShell]]の結果は再現した。 ### レスポンスヘッダ確認 [[cache-control]]が`max-age=86400`に... 24時間。。 これか。 <div class="link-card-v2"> <div class="link-card-v2-site"> <img class="link-card-v2-site-icon" src="https://github.githubassets.com/favicons/favicon.svg" /> <span class="link-card-v2-site-name">GitHub</span> </div> <div class="link-card-v2-title"> Why does the raw file still show previous data? · community · Discussion #46691 </div> <div class="link-card-v2-content"> Select Topic Area Question Body Hi, I updated some files in my repository, and I need to get this updated data w ... </div> <img class="link-card-v2-image" src="https://opengraph.githubassets.com/ea9a4d367acae287fdbcefcc691273010be5bb6a1cd6252c26889b465f87b117/orgs/community/discussions/46691" /> <a href="https://github.com/orgs/community/discussions/46691"></a> </div> [[expires]]が`Sun, 26 Feb 2023 16:21:57 GMT`なので、もうすぐキャッシュは切れそう。 あー..つまり、24時間以内にバージョンを2回以上上げて、[[BRAT]]を使ってインストールした場合、上記`manifest-beta.json`がキャッシュされてしまうと...。 `manifest.json`が無事なのは[[BRAT]]からインストールされなかったから。確認で投げたリクエストが1発目でそれがキャッシュされたから。 [[🦉Silhouette]] v0.12.0をリリースしたのは #2023/02/26 未明だからつじつまもあう。 ## 最新状況 #2023/02/27 午前1時現在で問題はまた発生中。 - リクエストするたびに[[expires]]が現在時刻から5分後に延長される - [[expires]]は`max-age=86400`のまま - `manifest-beta.json`は依然として最新版が取得できない ## 追加調査 (2026-07-12) > [!right-bubble] ![[minerva-face-right.webp]] > > [!caution] [[ミネルヴァ]](agent)により自動で記述された項目です。 > `raw.githubusercontent.com` のレスポンスヘッダを再確認したところ、[[cache-control]]が `max-age=300` (5分)になっていた。 ```console $ curl -sI https://raw.githubusercontent.com/tadashi-aikawa/silhouette/HEAD/manifest-beta.json | grep -iE 'cache-control|expires' cache-control: max-age=300 expires: Sat, 11 Jul 2026 18:46:32 GMT ``` ノート記載当時の `max-age=86400` (24時間)から短縮されており、24時間以内に複数回リリースしても最大5分待てば最新の `manifest-beta.json` が取得できるようになった。当時の問題は事実上解消していると考えられる。