mirror of
https://github.com/Doodle3D/doodle3d-firmware.git
synced 2024-12-22 19:13:49 +01:00
IE aggressively caches ajax calls, adding this header makes it behaivior consistent with other browsers
This commit is contained in:
parent
5ccbf68362
commit
c69420b5b3
@ -149,6 +149,7 @@ function M:send()
|
|||||||
printHeaderLine("Status", self.httpStatusCode .. " " .. self.httpStatusText)
|
printHeaderLine("Status", self.httpStatusCode .. " " .. self.httpStatusText)
|
||||||
printHeaderLine("Content-Type", self.contentType)
|
printHeaderLine("Content-Type", self.contentType)
|
||||||
printHeaderLine("Access-Control-Allow-Origin", "*")
|
printHeaderLine("Access-Control-Allow-Origin", "*")
|
||||||
|
printHeaderLine("Expires", "-1")
|
||||||
|
|
||||||
if self.binaryData == nil then
|
if self.binaryData == nil then
|
||||||
io.write("\r\n")
|
io.write("\r\n")
|
||||||
|
Loading…
Reference in New Issue
Block a user