WordPress.org

Plugin Directory

wp-cache

#1528 closed defect (fixed)

wp-super-cache: gzip_accepted(): handle missing Accept-Encoding header correctly

Reported by: pioto Owned by: donncha
Priority: normal Severity: normal
Plugin: wp-cache Keywords:
Cc:

Description

A change in wp-super-cache 1.1 (specifically, revision 502761), broke visiting pages using wp-super-cache with user agents which do not send the Accept-Encoding header -- they are always sent gzipped content, when they should not be.

I'm attaching a patch which corrects the logic here, while keeping the "avoid warnings" intention.

Attachments (1)

0001-gzip_accepted-handle-missing-Accept-Encoding-header-.patch (990 bytes) - added by pioto 23 months ago.

Download all attachments as: .zip

Change History (3)

comment:1 pioto23 months ago

  • Component changed from not-listed to wp-cache

comment:2 donncha23 months ago

  • Resolution set to fixed
  • Status changed from new to closed

In [554883]:

Fixed serving of gzipped content to clients who who don't tell us either way. Fixes #1528. Props pioto

Note: See TracTickets for help on using tickets.