代码更改后,如果没有先删除缓存,.Net网站就不会出现(After code changes, .Net website won't come up without deleting cac

编程入门 行业动态 更新时间:2024-10-26 07:28:26
代码更改后,如果没有先删除缓存,.Net网站就不会出现(After code changes, .Net website won't come up without deleting cache first)

我有一个带有C#代码的.Net网站。

当我对网站(在我的本地计算机上)进行编码更改,并将文件(使用ftp通过Windows资源管理器的.dll和.aspx文件)复制到服务器(由GoDaddy托管)时,如果没有清除,该网站有时不会出现首先是浏览器缓存 它发生在IE,Firefox和Chrome中。

有谁知道为什么会发生这种情况以及如何解决这个问题? (仅供参考 - 不确定是否重要,但该网站有一个SQL数据库,网站是http://www.fonyfacts.com/ )感谢您的帮助!

I have a .Net website with C# code behind.

When I make coding changes to the website (on my local machine), and copy the files (.dll and .aspx files using ftp through Windows Explorer) to the server (hosted by GoDaddy) the site will sometimes not come up without clearing the browser cache first. It happens in IE, Firefox, and Chrome.

Does anyone know why this would happen and how to fix the issue? (FYI - not sure if it matters, but the website has a SQL database and the site is http://www.fonyfacts.com/) Thanks for your help!

最满意答案

一旦你上传了一个新的DLL,你的网站就会回收,并且可以从几秒钟到更多的东西再次开始 - 这是正常的。 当其他一些文件也被更改时也会发生这种情况,例如web.config。 像斯坦尼斯拉夫说的那样; 构建本地,只有在您准备好运行它时才上传。

As soon as you upload a new DLL your website will recycle and can take anything from a few seconds to much more to get going again - this is normal. This will also happen when some other files are changed too, such as the web.config. Like Stanislav says; build local and only upload when you're ready to run it.

更多推荐

本文发布于:2023-07-31 02:14:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1340439.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:如果没有   缓存   代码   网站   deleting

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!