Today I did some infrastructure housekeeping for this site. The changes are small, but all relate to day-to-day experience: I can now understand more clearly how articles are read, and the filing information and resource loading are now more standardized.

Analytics: Covering Both Domestic and Overseas Visitors

The site now uses two analytics services at the same time:

  • Baidu Analytics: better suited for observing domestic search, referral channels, and page visits;
  • Google Analytics 4: supplements data on overseas visits and international search sources.

The numbers from the two will not be exactly the same—browser privacy settings, network environments, and script loading conditions can all cause differences. The focus here is on long-term trends rather than treating a single day’s PV as an absolute answer.

This data will be used to judge which topics are worth continuing to write about and which articles need supplementation or revision; it will not affect readers’ normal reading of content.

The footer is now arranged in three layers:

  1. site copyright;
  2. ICP filing and public-security network filing;
  3. technical credits for Hugo and PaperMod.

A corresponding icon has been added next to the public-security filing number, and both filing numbers link directly to their official query pages. On mobile, they wrap automatically when space is insufficient, preventing long filing numbers from breaking the layout.

Caching: Make the Right Assets Faster and Keep Updates Timely

This time the caching rules for static assets have also been reorganized:

  • Hugo-generated content-fingerprinted assets (such as CSS and JavaScript) can be cached for one year. When file content changes, the URL also changes, so long-term caching is safe;
  • Fixed-URL assets such as icons and images are cached for 30 days. This reduces repeated downloads while also preventing situations where a replaced file with the same name is not visible for a long time;
  • HTML pages are not long-term cached; they are still validated via ETag and Last-Modified time, so new posts or page updates are visible promptly.

The server also continues to provide gzip and zstd compression to reduce the transfer size of text assets.

What’s Next

The value of infrastructure lies not in stacking tools, but in keeping things simple and maintainable. Going forward, I will continue to optimize content and performance based on actual visit patterns, and gradually supplement the site’s data and privacy notices.

Thanks for every visit.🙂