阿帕奇2.2.17没有返回HTTPS静态文件的最后修改日期 [英] Apache 2.2.17 not returning last modified date of https static file
问题描述
我使用NSurlconnect和的NSURLRequest得到的HTTP标头从静态txt文件从Apache服务器提供的,但它不返回的最后修改日期。
I'm using NSurlconnect and an NSurlrequest to get the http headers from a static txt file served from an apache server but it does not return the last modified date.
什么Apache服务器的配置指令将prevent这或可能我有服务器的家伙添加到配置,使这显示什么。
What Apache server configuration directive would prevent this or what could i have the server guys add to the configuration to enable this to show.
FYI我曾尝试其他URL不同的服务器上,我能够获得最后的修饰。
FYI I have tried other urls on different servers and i am able to get last-modified from them.
推荐答案
这竟然是与证书的问题和解决方案是修改允许canAuthentiateAgainstProtectionSpace选项。
This turned out to be a problem with certificates and the solution was to revise the allowable canAuthentiateAgainstProtectionSpace options.
这给我造成了一些混乱,因为我收到的回应,它让我下载即使响应是一个HTTP 401响应文件。一旦我固定authenificiation问题,我开始得到正确的304和200的选项从服务器返回的以及所有预期的标题
It caused me some confusion because I received a response and it allowed me to download the file even though the response was a http 401 response. once I fixed the authenificiation problem i started to get the correct 304 and 200 options back from the server along with all the expected headers
这篇关于阿帕奇2.2.17没有返回HTTPS静态文件的最后修改日期的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!