IIS7,包括aspx中的.html,可以防止缓存 [英] IIS7, including .html in aspx, prevent caching

查看:187
本文介绍了IIS7,包括aspx中的.html,可以防止缓存的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们目前正在运行Windows 2008 Server Standard Edition。我们正在运行一个.net站点,在我们使用的一些页面上包括一些与我们的javascript一起使用的.html文件。我们在使用缓存时遇到了问题。当我们编辑其中一个.html文件时,我们可以通过直接输入URL并查看我们的更改来导航到它。但是正在拉入它们的.net页面正在提取某种缓存副本,因为它没有看到更改。

We currently are running Windows 2008 Server Standard Edition. We are running a .net site and on some of the pages we are using includes to include some .html files that are used with our javascript. We are having an issue though with caching. When we edit one of those .html files, we can navigate to it by typing in the URL directly and see our changes. But the .net page that is pulling them in is pulling in some kind of cached copy because it is not seeing the changes.

我尝试过触摸网络。配置。尝试重新启动Web服务。回收应用程序池。仍然无法得到改变。

I have tried "touching" the web.config. Tried restarting the web service. Recycling the app pool. Still can't get the changes to come up.

任何想法?

推荐答案

您可以尝试清除C:\ Windows \ Macrooft.NET \ Framework \v2.0.50727 \Temporary ASP.NET Files文件夹,看看是否有帮助。因此,您停止IIS ..清除上述路径中的所有文件和文件夹,然后再次启动IIS。

这是您在IIS上部署的预编译应用程序吗?

You can try clearing the C:\Windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files folder and see if that helps. So, you stop IIS.. clear all the files and folders in the path mentioned above and start IIS again.

Is this a precompiled application you have deployed on IIS?

这篇关于IIS7,包括aspx中的.html,可以防止缓存的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆