Service.svc file has not changed.
Here’s a Fiddler trace of a page that uses two WCF services.
You can see there are two
/js hits and they are sequential. Every visit to the same page, even with the same browser session results in making those two hits to
/js. Second time when the same page is browsed:
HttpModule for IIS and IIS Express which will intercept calls to WCF service proxy. It first checks if the service is changed since the cached version on the browser. If it has not changed then it will return HTTP 304 and not go through the service proxy generation process. Thus it saves some CPU on server. But if the request is for the first time and there’s no cached copy on browser, it will deliver the proxy and also emit the proper cache headers to cache the response on browser.
Don’t forget to vote.