简体   繁体   English

如何使用清漆4缓存标题?

[英]How can I cache headers with varnish 4?

I am not able to find a way to do it. 我找不到解决方法。 Can you help me with some code. 您能帮我一些代码吗? I searched a lot on internet but wasn't able to find something. 我在互联网上搜索了很多内容,但找不到任何东西。

double check you have changed the backend port to 8080 also in default.vcl file. 仔细检查您是否也在default.vcl文件中将后端端口也更改为8080。 Restart apache and varnish. 重新启动apache和清漆。 You can follow this blog post to ensure varnish is properly installed: https://info.varnish-software.com/blog/install-and-test-varnish-in-5-steps 您可以按照此博客文章来确保正确安装清漆: https : //info.varnish-software.com/blog/install-and-test-varnish-in-5-steps

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM