我有一个带有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.
更多推荐
发布评论