Skip to content


Download file over SSL Error with Internet Explorer

เมื่ออาทิตย์ก่อน ผมเจอปัญหาที่ทำอยู่ที่ทำงานครับ ซึ่งงานผมเป็น service ที่ทำงานอยู่บน SSL หรือพูดให้ฟังดูง่ายๆ คือ https นั้นเอง ปัญหาที่ผมกับผู้ใช้งานเซอร์วิชก็คือ ไม่สามารถดาวโหลดแฟ้มข้อมูลได้

ปัญหา

ไม่สามารถโหลดไฟล์ผ่าน SSL  โดยปัญหานี้พบกับเฉพาะ Internet Explorer 7 (IE7 โดย IE รุ่นอื่น ยังไม่ได้รับรายงานปัญหาดังกล่าว) ส่วนบราวเซอร์ตัวอื่นยังไม่พบปัญหาเช่นนี้ โดย error ที่พบ IE จะขึ้นมาที่ผู้ใช้ว่า “the file could not be written to the cache” ทำให้ไม่สามารถดาวโหลดไฟล์ได้

วิธีการแก้ไข

สามารถเลือกแก้ไขได้โดยวิธีใดวิธีหนึ่งดังนี้

สำหรับ server admin หรือ webmaster

ห้ามใส่ cache-control หรือ pragma: no-cache ลงใน header ของ http ในส่วนที่เป็น oct-stream หรือ file-download

สำหรับ client (ผมยังไม่ได้ลองครับ)

เข้าไป uncheck ตามลำดับดังนี้ IE Tools -> Internet Options -> Advanced -> Security -> Do not save encrypted
pages to disk

Posted in HTML & CSS, PHP. Tagged with .

0 Responses

Stay in touch with the conversation, subscribe to the RSS feed for comments on this post.