且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

加载资源失败:服务器响应状态为 409

更新时间:2022-06-16 23:14:47

对于任何面临此问题的人,这是 bluehosthostgator 托管中的已知问题.基本上,其根本原因似乎是他们使用 contact 字符串阻止了 image/js/css 或任何路径中的其他资产.

For anyone who is facing this issue, this is a known issue in bluehost and hostgator hosting. Basically the root reason for this seems to be that they are blocking image/js/css or other assets in any path with contact string.

联系表 7 资产被随机屏蔽的原因可能也是出于同样的原因.

The reason that contact form 7 assets are randomly blocked is probably also due to this same reason.

我在我的服务器上运行了 html 网站,其中包含在例如 /images/contact/ 文件夹中的资产的联系人(或任何其他)页面也没有加载 409 冲突错误code>,由于assets文件夹中的联系人路径.

I had html websites running on my server where contact (or any other) page with assets in for example /images/contact/ folder also did not load with 409 conflict error, due to the contact path in the assets folder.

不幸的是,我像许多用户一样找不到解决方案.查看这些链接:链接 1链接 2

Unfortunately I found no solution to this just like many many users out there. Check out these links: Link 1 Link 2

解决方案是什么?

  • 在托管服务提供商的支持上浪费时间是没有用的.我只是用hostgator/bluehost 用于开发目的.那里有许多托管服务提供商,所以下次你可以选择其他的,尤其是直播网站.

  • Well wasting time with hosting provider support is of no use. I just use hostgator/bluehost for development purpose. There are many hosting providers out there, so next time you can choose some other one, especially for live websites.

对于自定义网站,请避免将资产文件夹命名为包含 contact 的任何内容.

For custom websites, avoid naming your assets folder to anything that has contact in it.

对于 CF7 在 wordpress 中,停止使用 define( 'WPCF7_LOAD_JS', false ) 加载 wp-config 文件中的资产;define( 'WPCF7_LOAD_CSS', false ); 并通过单独下载文件并导入它们来手动加载标头中的文件.

For CF7 in wordpress stop loading the assets in wp-config file using define( 'WPCF7_LOAD_JS', false ); define( 'WPCF7_LOAD_CSS', false ); and manually load the files in the header by separately downloading the files and importing them.