[wp-meta] [Making WordPress.org] #309: Prevent caching of P2 iPhone styles
Making WordPress.org
noreply at wordpress.org
Wed Feb 5 20:07:57 UTC 2014
#309: Prevent caching of P2 iPhone styles
-------------------+-------------------------------------
Reporter: nacin | Owner:
Type: defect | Status: new
Priority: normal | Component: make.wordpress.org / P2
Keywords: |
-------------------+-------------------------------------
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.
--
Ticket URL: <https://meta.trac.wordpress.org/ticket/309>
Making WordPress.org <https://meta.trac.wordpress.org/>
Making WordPress.org
More information about the wp-meta
mailing list