Skip to main content
AI Assist is now on Stack Overflow. Start a chat to get instant answers from across the network. Sign up to save and share your chats.
deleted 1 characters in body
Source Link
demetrio812
  • 289
  • 3
  • 17

I was observirng some strange behaviour of my app sometime caching responses and sometime not cacheingcaching them (all the responses have Cache-Control: max-age=600).

I was observirng some strange behaviour of my app sometime caching responses and sometime not cacheing them (all the responses have Cache-Control: max-age=600).

I was observirng some strange behaviour of my app sometime caching responses and sometime not caching them (all the responses have Cache-Control: max-age=600).

added raw response from PHP page
Source Link
demetrio812
  • 289
  • 3
  • 17

This is the response I get from the PHP page:

HTTP/1.1 200 OK Date: Thu, 28 Nov 2013 11:41:55 GMT Server: Apache X-Powered-By: PHP/5.3.17 Cache-Control: max-age=600 Keep-Alive: timeout=5, max=100 Connection: Keep-Alive Transfer-Encoding: chunked Content-Type: application/json { "result": { "employeeId": "", "dateTime": "2013-11-28 11:41:55'" } } 

Then I've created a simple app and added AFNetworking library.

http://www.novaware.co.uk/t.php?eId=1&organizationId=4011&organizationId2=4012&organizationId3=4013&org=4http://www.mydomain.co.uk/t.php?eId=1&organizationId=4011&organizationId2=4012&organizationId3=4013&org=4

This is the response I get from the PHP page:

HTTP/1.1 200 OK Date: Thu, 28 Nov 2013 11:41:55 GMT Server: Apache X-Powered-By: PHP/5.3.17 Cache-Control: max-age=600 Keep-Alive: timeout=5, max=100 Connection: Keep-Alive Transfer-Encoding: chunked Content-Type: application/json { "result": { "employeeId": "", "dateTime": "2013-11-28 11:41:55'" } } 

Then I've created a simple app and added AFNetworking library.

http://www.mydomain.co.uk/t.php?eId=1&organizationId=4011&organizationId2=4012&organizationId3=4013&org=4

Added more info about more tests
Source Link
demetrio812
  • 289
  • 3
  • 17

I've also tried to establish how many characters in the URL will trigger the problem but even in this case I've got strange results:

This one is 112 characters long and it doesn't work:

http://www.mydomain.co.uk/test.php?eId=1&organizationId=4011&organizationId2=4012&organizationId3=4013&orgaId4=4

This one is 111 characters long and it works:

http://www.mydomain.co.uk/test.php?eId=1&organizationId=4011&organizationId2=4012&organizationId3=4013&orgId4=4

Ive renamed the PHP script to see if the first part of the URL would matter and I've got a strange behaviour again:

This one is 106 characters long and it doesn't work:

http://www.mydomain.co.uk/t.php?eId=1&organizationId=4011&organizationId2=4012&organizationId3=4013&org=40

This one is 105 characters long and it works:

http://www.novaware.co.uk/t.php?eId=1&organizationId=4011&organizationId2=4012&organizationId3=4013&org=4

So I've removed 3 characters from the page name and I've got a working threshold 6 characters lower.

Any suggestion?

Any suggestion?

I've also tried to establish how many characters in the URL will trigger the problem but even in this case I've got strange results:

This one is 112 characters long and it doesn't work:

http://www.mydomain.co.uk/test.php?eId=1&organizationId=4011&organizationId2=4012&organizationId3=4013&orgaId4=4

This one is 111 characters long and it works:

http://www.mydomain.co.uk/test.php?eId=1&organizationId=4011&organizationId2=4012&organizationId3=4013&orgId4=4

Ive renamed the PHP script to see if the first part of the URL would matter and I've got a strange behaviour again:

This one is 106 characters long and it doesn't work:

http://www.mydomain.co.uk/t.php?eId=1&organizationId=4011&organizationId2=4012&organizationId3=4013&org=40

This one is 105 characters long and it works:

http://www.novaware.co.uk/t.php?eId=1&organizationId=4011&organizationId2=4012&organizationId3=4013&org=4

So I've removed 3 characters from the page name and I've got a working threshold 6 characters lower.

Any suggestion?

added 200 characters in body; edited tags; edited title
Source Link
demetrio812
  • 289
  • 3
  • 17
Loading
Source Link
demetrio812
  • 289
  • 3
  • 17
Loading