[Plugin: WP Super Cache] Rejected User Agent parsing flawed
-
Hey Donncha,
I just installed WPTouch and, to make it work with WPSC, I put in all the mobile user agents from the WPSC .htaccess file into the Rejected User Agents section in WPSC options.
Here they are, for reference: 2.0\ MMP|240×320|400X240|AvantGo|BlackBerry|Blazer|Cellphone|Danger|DoCoMo|Elaine/3.0|EudoraWeb|Googlebot-Mobile|hiptop|IEMobile|KYOCERA/WX310K|LG/U990|MIDP-2.|MMEF20|MOT-V|NetFront|Newt|Nintendo\ Wii|Nitro|Nokia|Opera\ Mini|Palm|PlayStation\ Portable|portalmmm|Proxinet|ProxiNet|SHARP-TQ-GX10|SHG-i900|Small|SonyEricsson|Symbian\ OS|SymbianOS|TS21i-10|UP.Browser|UP.Link|webOS|Windows\ CE|WinWAP|YahooSeeker/M1A1-R2D2|iPhone|iPod|Android|BlackBerry9530|LG-TU915\ Obigo|LGE\ VX|webOS|Nokia5800
I replaced | with the new line and removed the \ character.
I noticed that my site was now not using cache. After looking into it, the problem turned out to be the parser that parses these Rejected User Agent strings – it turns a space into a new line. For example,
Windows CE
becomes
Windows
CEIt also adds a blank line in the end, not sure if that’s of any significance.
I removed the entries with the space for now but I think it’s a problem that needs to be fixed. What do you think?
The topic ‘[Plugin: WP Super Cache] Rejected User Agent parsing flawed’ is closed to new replies.