web

Same Origin PolicyとCORSとCPS

web

一度きちんと整理しておきたし。 オリジンとは URLのscheme, host, portによって定義される。以下、いずれも違うオリジンになる。 http://example.com https://example.com http://sub.example.com http://example.com:8080 同一生成元ポリシー 英語で言うと…

ブラウザキャッシュ

web

ブラウザキャッシュを有効にするにあたり、調べたことをメモ。 基本概念 http://www.studyinghttp.net/caching#explicit_expiration_time は必読。特に以下4つ。 明示的有効期限 {explicit expiration time} オリジンサーバが、エンティティの有効性の再確認…