WCF-RIA Services OutputCache Client - Does Not Work in IE with localhost

We use WCF-RIA Services in our project. In part, this is a search that will trigger an RIA request on the server.

For this request, we have included the client output cache using this attribute:

[OutputCache(OutputCacheLocation.Client, duration: 2 * 60)] 

We want to use the clientโ€™s cache, because the information that will be cached depends on the user. The problem is that the cache works fine in Firefox and IE after the application is installed in IIS, but when debugging, IE seems to ignore caching.

Perhaps this is actually not a RIA Service problem, but an IE problem. It looks like IE sees: โ€œHey, this is a localhost request, I don't want to cache thisโ€ (some kind of feature).

This is a little useless because the debugging situation does not match the live situation.

Is there a way to use WCF-RIA Services client cache in IE during debugging?

+5
source share
1 answer

You should be able to verify this using either your computer name in the URL or using localhost. (note the dot at the end) instead of localhost. See here for more details .

Once you work with Fiddler, you can see if your caching is on or off and debug it.

+1
source

Source: https://habr.com/ru/post/895241/


All Articles