ThaiSEOBoard.com

พัฒนาเว็บไซต์ => Programming => ข้อความที่เริ่มโดย: pum_pam ที่ 30 กรกฎาคม 2019, 09:54:23



หัวข้อ: สอบถามวิธีวาง code Vary HTTP header ค่ะไม่ทราบว่าต้องวาง code ที่ไหน
เริ่มหัวข้อโดย: pum_pam ที่ 30 กรกฎาคม 2019, 09:54:23
อ้างอิงจาก link นี้
https://developers.google.com/search/mobile-sites/mobile-seo/dynamic-serving

ถ้าเราจะทำ Vary Response Header เราต้องนำโค๊ต ด้านล่างไปวางไว้ที่ไหนคะ ต้องเขียนอย่างไรคะ

GET /page-1 HTTP/1.1
Host: www.example.com (http://www.example.com)
(...rest of HTTP request headers...)

HTTP/1.1 200 OK
Content-Type: text/html
Vary: User-Agent
Content-Length: 5710
(... rest of HTTP response headers...)




หัวข้อ: Re: สอบถามวิธีวาง code Vary HTTP header ค่ะไม่ทราบว่าต้องวาง code ที่ไหน
เริ่มหัวข้อโดย: Airice ที่ 06 สิงหาคม 2019, 19:10:30
ถ้าจำไม่ผิดวางไว้ที่ .htaccess คะ