Generate hash for index.json requests (FSharp.Formatting issue)
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 35/100
- issue の種類
- 機能追加
- 明瞭さ
- おおむね明確
- 活発さ
- 停滞
- 技術スタック
- fsharp, javascript
調査の方向性
docs/content/fsdocs-search.js の 14 行目から始め、index.json と生成されたアセット URL を出力するテンプレート処理の経路を追跡します。生成されたリンクと CSS またはスクリプトの参照がどのように生成されるかを特定します。完了条件は、更新されたコンテンツに hash クエリ値が付与され、ブラウザーが古い index.json のレスポンスを再利用しないことです。
索引モデルが issue の本文から書いたものです。
説明
The index.json search index cached by browsers may become out of date as the site gets refreshed
This is an FSharp.Formatting issue (specifically in fsdocs-search.js) noted by @baronfel in https://github.com/fsharp/fsharp-core-docs/pull/27#issuecomment-667561113
Cool. How do we check that? Here's the request: fsprojects/FSharp.Formatting@master/docs/content/fsdocs-search.js#L14
Regarding this point, I'd suggest that that content rendered by the templating engine render the content, and provide a hashed value for this specific content
Then, when rendering links/src elements to generated content files, append the hash to the query string. This would mean that urls like the one in the search JS you linked would need to be templated as well. Same for css links in the html head elements, etc.
- 主要言語
- 言語のデータがありません
- スター
- 37
- フォーク
- 20
- 平均マージ
- 5分
- マージ済み PR(30日)
- 2
コントリビューションガイド
このリポジトリのコントリビューションガイドは索引されていません
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
fsharp/fsharp-core-docs のほかの issue
-
Missing namespaces? オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 45/100
fsharp/fsharp-core-docs#104 · コメント 6 件 ·
-
難易度 4/5 3〜5日 初心者へのやさしさ 25/100
fsharp/fsharp-core-docs#103 · コメント 4 件 ·
-
難易度 3/5 1〜2日 初心者へのやさしさ 38/100
fsharp/fsharp-core-docs#82 ·
-
難易度 5/5 1週間以上 初心者へのやさしさ 25/100
fsharp/fsharp-core-docs#76 · コメント 4 件 · リアクション 9 件 ·
-
難易度 5/5 1週間以上 初心者へのやさしさ 25/100
fsharp/fsharp-core-docs#75 · コメント 3 件 · リアクション 1 件 ·
fsharp/fsharp-core-docs の issue をすべて見る
似ている issue
-
難易度 1/5 1時間未満 初心者へのやさしさ 95/100
Git-it-App/git-it-electron#1047 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
neondatabase/website#5944 ·
-
📕documentation
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
db-ux-design-system/core-web#8239 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
libsdl-org/sdlwiki#1008 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100