I came across something interesting lately while playing with the WSO2 ESB cache mediator. Since this would be a very common scenario I thought of writing about it. Following is a small description of the problem and the solution.

When a browser sends a request for a certain resource the server replies with the resource with an HTTP ETag value (e.g. ETag: d9537e6b) header. This allows the browser to make conditional requests. The next time the browser sends an HTTP GET request to the same resource it will send a new HTTP header called If-None-Match (e.g. If-None-Match:d9537e6b). The server will…

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store