3 ms·
Fun stuff. I'd be tempted to either a) run a deployment step to freeze CSS locally or b) do some nginx reverse proxy magic to grab the latest CSS and cache it
by patio11 15y ago
Fun stuff. I'd be tempted to either a) run a deployment step to freeze CSS locally or b) do some nginx reverse proxy magic to grab the latest CSS and cache it for a long time (I.e. only grabbing it from GAE once per revision).
That's a fairly consequential thingee to have on a server with availability independent of one's own.
If folks want I'll OSS code for this, although at a dozen lines in Rails it is barely worth typing git clone...
- deleted 15y ago[deleted]
- shii 15y agoWe do, please.
- euroclydon 15y agoHow would I make sure my off-domain images, that are referenced in css, are linked with http when the connection is non-ssl, and https, when the connection is ssl? Currently I make the server link to two separately cached css files (depending on secure or not), which are themselves dynamically generated with an ssl flag. Does SASS offer a solution for this?
- tghw 15y agoInstead of specifying http://example.com/foo.png http://example.com/foo.png or https://example.com/foo.png https://example.com/foo.png, you can just use //example.com/foo.png. AFAIK the only downside to that is older versions of IE (6 & 7 I think) will download the image twice for some reason.
- spjwebster 15y agoIt's actually IE7 and IE8, and only for CSS file URLs (as opposed to URLs in CSS files). Details of protocol-relative URLs here: http://blog.httpwatch.com/2010/02/10/using-protocol-relative-urls-to-switch-between-http-and-https/ http://blog.httpwatch.com/2010/02/10/using-protocol-relative... ...and the unfortunately double-loading bug for CSS files in IE7/8 here: http://www.stevesouders.com/blog/2010/02/10/5a-missing-schema-double-download/ http://www.stevesouders.com/blog/2010/02/10/5a-missing-schem...