WCF-RIA Services Client OutputCache - not working in IE with localhost

无人久伴 提交于 2019-12-10 13:45:13

问题


We are using the WCF-RIA Services in our project. On part is a search which will trigger a RIA request on the server.

For this request we have enabled the Client output cache using this attribute:

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

We want to use the client cache, because the information to be cached are user specific. The problem ist, that the cache works fine in Firefox and IE after the application is installed in an IIS, but while debugging IE seems to ignore the caching.

Maybe this is not really a RIA Service specific problem but more of an IE problem. It looks as IE sees "Hey, this is a request to localhost, I don't want to cache that" (some kind of feature).

This is a bit unhelpful, because the debugging situation is not the same as the "live" situation.

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


回答1:


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

Once you have it working with Fiddler you should be able to see if your caching is on or off and debug it.



来源:https://stackoverflow.com/questions/7092542/wcf-ria-services-client-outputcache-not-working-in-ie-with-localhost

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!