Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
サーバー上のクライアントから最初に受信したリクエストでHistoryAPI、localStorageなどのブラウザー機能を検出して、ブラウザー機能に従って応答ページデータをカスタマイズできるようにする方法はありますか?
私はページがロードされている間にそれを行う方法を知っています(私はModernizrJSライブラリを使用してそれを行います)。
Modernizr
最初のページの読み込み時にCookieを設定できます。上記のCookieが存在しない場合は、機能を確認してください。擬似:
if(feature_cookies_does_not_exist) { check_for_features() create_feature_cookie() }