エントリーの編集
エントリーの編集は全ユーザーに共通の機能です。
必ずガイドラインを一読の上ご利用ください。
Testing HTTP caching in Go | Santiago Arias
記事へのコメント0件
- 注目コメント
- 新着コメント
このエントリーにコメントしてみましょう。
注目コメント算出アルゴリズムの一部にLINEヤフー株式会社の「建設的コメント順位付けモデルAPI」を使用しています
- バナー広告なし
- ミュート機能あり
- ダークモード搭載
関連記事
Testing HTTP caching in Go | Santiago Arias
I have written some posts on building images in an HTTP response and how to cache them. This post... I have written some posts on building images in an HTTP response and how to cache them. This post is about how to test all of this and verify that you are testing the right thing. This is the code that we are starting with: func blackHandler(w http.ResponseWriter, r *http.Request) { key := "black" e := `"` + key + `"` w.Header().Set("Etag", e) w.Header().Set("Cache-Control", "max-age=2592000") //