Enable text compression

Check negotiated response encoding at the public URL and configure compression on the system serving the bytes.

A page can serve minified HTML, CSS and JavaScript yet still transfer more bytes than necessary. When Sitepulse reports missing text compression, inspect the response from the public URL that was tested. Compression belongs to the delivery path, so the answer may be in the CDN, web server or remote asset host rather than the application source.

Check the response, not the filename

A file called app.min.js may be compact source but have no transfer compression. Conversely, a readable response displayed by DevTools may already have been decompressed for inspection. Compare the transferred and decoded sizes, then inspect the Content-Encoding response header.

The request's Accept-Encoding header advertises the encodings the client can handle. The response's Content-Encoding describes the encoding actually used. A small text response may reasonably remain uncompressed when the overhead outweighs the benefit; use DevTools to focus on substantial text responses with a large transfer size.

Set the policy where the response is served

Use the existing delivery system's supported Brotli or gzip configuration, with an appropriate fallback for the clients you support. Check content-type matching so that JavaScript, JSON, CSS and HTML receive the intended treatment. Do not apply another compression pass to already compressed media merely to make every response look the same.

Retain correct cache variation when one URL has compressed and uncompressed representations. A cache must not send an encoding to a client that did not negotiate it. Avoid manually adding Content-Encoding to a body that was never compressed: the header describes bytes, it does not transform them.

Verify the visitor-facing route

For an authorised public test URL, this request asks curl to negotiate a supported encoding and prints the response headers:

curl --location --compressed --silent --show-error \
  --dump-header - --output /dev/null \
  https://portal.example.com/

Inspect the final response if the URL redirects. Compare a normal negotiated response with an uncompressed request when diagnosing cache behaviour. Test both a document and a representative static asset, because they may be served by different systems.

Avoid changing the wrong host

If the flagged resource is hosted by an analytics or widget provider, a setting on your application server will not change that response. Review whether the integration is needed on the page and whether the provider has a supported delivery option. For first-party assets, check the edge configuration as well as the origin.

Confirm the transfer reduction

Deploy, refresh the relevant caches and repeat the Sitepulse check under comparable conditions. Record transferred bytes and check that every affected response still decodes correctly. Compression and minification estimates for the same resource are not independent savings to add together. If the file remains disproportionately large, investigate unnecessary JavaScript delivery or unused styles.

Technical references