是否可以阻止 Google Web Light 从表单标签中删除多部分属性?

Is it possible to prevent Google Web Light from removing multipart attributes from form tag?

我有一个包含文件输入的表单,并且该表单已正确配置以正常处理此问题。表单标签包含以下属性:

enctype="multipart/form-data"

这在所有普通浏览器中都可以正常工作,但在 Google Web Light 中不行。在 Google Web Light 中,我注意到正在传递文件名,但没有传递关联的文件数据。

检查通过 Google Web Light 修改的页面后,我注意到 enctype 属性已被删除,我相信这就是文件数据未通过表单操作的原因。

有什么方法可以防止 Google Web Light 这样做吗?

我也在寻找一种让 Google Web Light 保留的方法:

enctype="multipart/form-data"

作为解决方法,您是否尝试过 https://support.google.com/webmasters/answer/6211428?hl=en 中的 'Opting out of transcoding'?

If you do not want your pages to be transcoded, set the HTTP header "Cache-Control: no-transform" in your page response. If Googlebot sees this header, your page will not be transcoded.