1 | ' 給予正確的ContentType |
2 | Response.ContentType = "text/xml" |
3 | ' IIS不要快取 |
4 | Response.CacheControl = "no-cache" |
5 | ' Browser不要快取 |
6 | Response.AddHeader( "Pragma" , "no-cache" ) |
Reference:
- http://zh.wikipedia.org/zh/MIME (了解MIME格式)
- http://www.w3schools.com/media/media_mimeref.asp (MIME完整列表)
- Program
沒有留言:
張貼留言
感謝您的留言,如果我的文章你喜歡或對你有幫助,按個「讚」或「分享」它,我會很高興的。