I am having web page make ajax HTTP PATCH call to the same domain restful service. It failed ONLY for mobile phone for chrome browser, like the below
$.ajax({
url : "same-domain/path",
data : "{}",
type : 'PATCH',
headers: {
"Cache-Control":"no-transform",
"Content-Type":"application/json"
},
processData: false
}); // failed ONLY if any payload presented
Status Code:502 Bad Gateway
This page cannot be loaded via the Chrome Data Compression Proxy. Try reloading the page.
This is quite annoying since all we tested desktop browsers and mobile NOT-chrome can do PATCH successfully. Actually, mobile chrome does succeed ONLY if no any payload
$.ajax({
url : "same-domain/path",
data : "",
type : 'PATCH',
headers: {
"Cache-Control":"no-transform",
"Content-Type":"application/json"
},
processData: false
}); // is OK ONLY if no payload at all
K. thanks for some related discussion here so i know the cause. I wish this can fix this and respect cache-control header. And meanwhile, what is your way to walkaround?