Opened 11 years ago
Closed 11 years ago
#309 closed defect (bug) (fixed)
Prevent caching of P2 iPhone styles
Reported by: |
|
Owned by: |
|
---|---|---|---|
Milestone: | Priority: | normal | |
Component: | Make (Get Involved) / P2 | Keywords: | |
Cc: |
Description
P2 selectively serves a stylesheet for iPhones, designed to be read in portrait mode (based on its penchant for 320px). The problem is it does this by sniffing the user agent, thus tripping up WordPress.org's load balancers, which means desktops are sometimes served an iPhone style. It also doesn't drop a cookie for the LBs to be configured to ignore.
This commit will make our child theme re-register the iPhone stylesheet with a media query of max-width: 320px. It will also simply always enqueue this stylesheet, thus bypassing the UA sniffing, and allowing it to be served to other narrow mobile devices.
Ideally as more of WP.org is made responsive we can just do away with this stylesheet, which is a pretty old hack in and of itself.
In 379: