Question

I made a curl request to a PHP file on my server from my machine and it returns the following response.

HTTP/1.1 200 OK
Content-Length: 317
Content-Type: application/json
Server: Microsoft-IIS/7.5
Last-Modified: Wed, 19 Feb 2014 11:30:16 GMT
Via: 1.1 SC10100_83_75
Connection: keep-alive
Date: Wed, 19 Feb 2014 12:00:47 GMT

The problem is, this seems to be caching my request and is not returning the latest values. I suspect it is due to the Via header (read that it is about proxies). What is it and how can I remove it?

Was it helpful?

Solution

Looks like via - indicates that you have been routed via a proxy - however - this is information only - you need to make sure you caching headers are being set correctly so that the proxy takes the correct action.

Currently there is no caching headers being set on your request.

If you do not want it to be cached - then set the following header:

Cache-Control: no-cache

See http://www.w3.org/Protocols/HTTP/Issues/cache-private.html

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top