I've written a RESTful web service which is consumed only by devices, never browsers. The devices access the internet via the owner's existing household router and communicate with the web service by sending HTTP requests through the router as often as every 30 seconds. These requests are mostly "polling" requests to see if the web service has any new information for the device.
I want to prevent any ISP transparent proxies from intercepting the request and returning a cached response. I've read that one way to do this is to append a random query string onto the end of the URL of the request to fool the proxy into thinking it's a unique request. For example:
http://webservicedomain.com/poll/?randomNumber=384389
I have the ability to do this, but is this the best way? Kinda seems like a hack.
no-cache
andno-store
in the value for theCache-Control
header? – Colored