dpcwz210393 2018-11-29 07:55
浏览 82

无法删除标题“vary:user agent”

I am trying to figure out why my Magento 2.2.6 shop is showing the header:

vary: Accept-Encoding,User-Agent

The problem is that the "User-Agent" makes my cache not working in a good way.

My shop is built like:

Visitor -> Nginx SSL Termination -> Varnish -> Apache 2.4

(This is under DirectAdmin with http2 activated.)

How can I find out where the Vary: User-Agent is added?

I have been looking in the Nginx config, Varnish default.vcl, and .htaccess

No luck, can you guide me where I should begin, and what I should look for?

(The problem is the same in production mode)

enter image description here

  • 写回答

1条回答 默认 最新

  • douji8033 2018-11-29 12:00
    关注

    finally I found a forum post (in Polish), telling me in which file I can find the "vary" problem.

    nano /usr/local/directadmin/custombuild/custom/ap2/conf/extra/httpd-ssl.conf

    There I could remove the header. (Added by default by DirectAdmin)

    Problem solved!

    评论

报告相同问题?

悬赏问题

  • ¥15 Vue3 大型图片数据拖动排序
  • ¥15 划分vlan后不通了
  • ¥15 GDI处理通道视频时总是带有白色锯齿
  • ¥20 用雷电模拟器安装百达屋apk一直闪退
  • ¥15 算能科技20240506咨询(拒绝大模型回答)
  • ¥15 自适应 AR 模型 参数估计Matlab程序
  • ¥100 角动量包络面如何用MATLAB绘制
  • ¥15 merge函数占用内存过大
  • ¥15 使用EMD去噪处理RML2016数据集时候的原理
  • ¥15 神经网络预测均方误差很小 但是图像上看着差别太大