Modify the X-Cache in Squid's Header to Powered-By-LinuxTone

  

When analyzing other websites today, notice the CDN acceleration of the domestic chinacache service provider, and change the default X-Cache of Squid to Powered-By-ChinaCache. , as shown below:

Before I noticed it but didn't study it. Today I just have a bit of a gap and I will study it.

My squid version: squid-2.6.STABLE23

Steps: 1. Find the source code of Squid including the X-Cache file:

2. Modify the source code file: ./src/HttpHeader.c

You can modify this file

3. Compile and install

4. Configure

5. Verify that httpwatch or firebug is used to fetch server header messages: httpwatch:

firebug:

Note: X-Cache can be modified to any information you want

Copyright © Windows knowledge All Rights Reserved