Files
2012-02-21 01:15:00 -05:00

1 line
15 KiB
JSON

[{"user_id": 723, "stars": [], "topic_id": 6419, "date_created": 1297880432.421536, "message": "And so we bake the unique keys (version numbers) into the actual filenames themselves... so http://example.com/my_{version}.css", "group_id": 81, "id": 122328}, {"user_id": 11358, "stars": [], "topic_id": 6419, "date_created": 1297881686.2928531, "message": "thanks for bringing it to my notice!", "group_id": 81, "id": 122541}, {"user_id": 723, "stars": [], "topic_id": 6419, "date_created": 1297880383.1455359, "message": "Does querystring-style cache busting work in all browsers now? i.e. http://example.com/my.css?{unique-key}", "group_id": 81, "id": 122305}, {"user_id": 723, "stars": [], "topic_id": 6419, "date_created": 1297880396.145098, "message": "I think it had issues in IE6", "group_id": 81, "id": 122313}, {"user_id": 11358, "stars": [], "topic_id": 6419, "date_created": 1297881677.2732871, "message": "I didn't know that it didn't work in IE6. have been using it all this while.", "group_id": 81, "id": 122539}, {"user_id": 3347, "stars": [], "topic_id": 6419, "date_created": 1297882326.7385049, "message": "Embedding a version in the query string will prevent the resource from being cached. Putting it in the path is the best approach, I think.", "group_id": 81, "id": 122652}, {"user_id": 7151, "stars": [], "topic_id": 6419, "date_created": 1297882406.9267311, "message": "@brodie where would it be prevented from being cached?", "group_id": 81, "id": 122679}, {"user_id": 228, "stars": [], "topic_id": 6419, "date_created": 1297886315.6080019, "message": "use django_compressor, live happy", "group_id": 81, "id": 123532}, {"user_id": 1126, "stars": [], "topic_id": 6419, "date_created": 1297889750.1174209, "message": "django-mediagenerator > *", "group_id": 81, "id": 124169}, {"user_id": 1126, "stars": [], "topic_id": 6419, "date_created": 1297889796.172132, "message": "I know Squid had some problems in the past with version numbers being part of the query string, but otherwise I've never had any issues cache-busting with it as opposed to filename rewrites", "group_id": 81, "id": 124177}, {"user_id": 927, "stars": [], "topic_id": 6419, "date_created": 1297891497.1622519, "message": "http://code.google.com/speed/page-speed/docs/caching.html#LeverageProxyCaching says the problem in the past was due to a query string", "group_id": 81, "id": 124611}, {"user_id": 927, "stars": [], "topic_id": 6419, "date_created": 1297891797.4484651, "message": "I've also never found static media file management to be worth supporting something like a media packaging app - I simply use make to prepare minified versions for deployment (avoiding the need to have things like yuicompressor installed on a server and allowing QA testing of what will actually be in production)", "group_id": 81, "id": 124703}, {"user_id": 228, "stars": [], "topic_id": 6419, "date_created": 1297892261.2408259, "message": "django_compressor > django-mediagnerator imo", "group_id": 81, "id": 124836}, {"user_id": 927, "stars": [], "topic_id": 6419, "date_created": 1297891643.319278, "message": "(silly auto-reload data loss)", "group_id": 81, "id": 124660}, {"user_id": 927, "stars": [], "topic_id": 6419, "date_created": 1297891633.398083, "message": "s/a query string$/caching proxies like squid < 3.0 ignoring query string/", "group_id": 81, "id": 124656}, {"user_id": 228, "stars": [], "topic_id": 6419, "date_created": 1297892264.6713049, "message": "but a fair bit", "group_id": 81, "id": 124839}, {"user_id": 228, "stars": [], "topic_id": 6419, "date_created": 1297892299.4547131, "message": "by*", "group_id": 81, "id": 124850}, {"user_id": 1126, "stars": [], "topic_id": 6419, "date_created": 1297893360.5858159, "message": "and you can test how it bundles fine on a staging server", "group_id": 81, "id": 125186}, {"user_id": 228, "stars": [], "topic_id": 6419, "date_created": 1297892424.670856, "message": "this is a recent search project as we use media_bundler which works a lot like mediagenerator", "group_id": 81, "id": 124880}, {"user_id": 723, "stars": [], "topic_id": 6419, "date_created": 1297893551.679126, "message": "https://github.com/sunlightlabs/django-mediasync", "group_id": 81, "id": 125239}, {"user_id": 228, "stars": [], "topic_id": 6419, "date_created": 1297893870.257076, "message": "well", "group_id": 81, "id": 125322}, {"user_id": 228, "stars": [], "topic_id": 6419, "date_created": 1297893888.4904521, "message": "in compressor", "group_id": 81, "id": 125326}, {"user_id": 228, "stars": [], "topic_id": 6419, "date_created": 1297893913.5692739, "message": "it goes through your templates and looks for anything within a compress tag and generates the files then", "group_id": 81, "id": 125329}, {"user_id": 228, "stars": [], "topic_id": 6419, "date_created": 1297893935.6992741, "message": "means you can do it on runtime for ease while developing, but take care of it ahead of time in production", "group_id": 81, "id": 125333}, {"user_id": 927, "stars": [], "topic_id": 6419, "date_created": 1297891905.2729981, "message": "The main drawback that I found is that these tend to have a lot of moving parts - I did send patches upstream but found the cost (any time vs. almost zero) exceeded the benefit, particularly given the failure mode of breaking on your production server versus during development", "group_id": 81, "id": 124736}, {"user_id": 1126, "stars": [], "topic_id": 6419, "date_created": 1297893401.422147, "message": "yes", "group_id": 81, "id": 125204}, {"user_id": 228, "stars": [], "topic_id": 6419, "date_created": 1297893874.2507131, "message": "that's what the OFFLINE settings are for", "group_id": 81, "id": 125323}, {"user_id": 1126, "stars": [], "topic_id": 6419, "date_created": 1297893157.97983, "message": "and the included sass, pyjs, and coffeescript support is certainly nice", "group_id": 81, "id": 125103}, {"user_id": 927, "stars": [], "topic_id": 6419, "date_created": 1297893238.172708, "message": "The bigger question is when work happens and how you fix it", "group_id": 81, "id": 125140}, {"user_id": 927, "stars": [], "topic_id": 6419, "date_created": 1297893270.770205, "message": "If it's part of your packaging process you have considerably more leeway for debugging", "group_id": 81, "id": 125154}, {"user_id": 1126, "stars": [], "topic_id": 6419, "date_created": 1297893106.278966, "message": "I've used media_bundler before as well, and definitely didn't enjoy using it", "group_id": 81, "id": 125076}, {"user_id": 1126, "stars": [], "topic_id": 6419, "date_created": 1297893121.622164, "message": "I don't know, mediagenerator just seemed to work perfectly for me", "group_id": 81, "id": 125089}, {"user_id": 927, "stars": [], "topic_id": 6419, "date_created": 1297893438.9981501, "message": "That's definitely better than several things I looked at in 2009", "group_id": 81, "id": 125213}, {"user_id": 723, "stars": [], "topic_id": 6419, "date_created": 1297893733.574405, "message": "@jacob it does support compression", "group_id": 81, "id": 125293}, {"user_id": 228, "stars": [], "topic_id": 6419, "date_created": 1297892427.157233, "message": "and i got quite sick of it", "group_id": 81, "id": 124881}, {"user_id": 228, "stars": [], "topic_id": 6419, "date_created": 1297893682.714556, "message": "pewpew: don't confuse django_compressor with django_compress", "group_id": 81, "id": 125277}, {"user_id": 723, "stars": [], "topic_id": 6419, "date_created": 1297893863.9525011, "message": "sure. imo i'd never want my app generating that at runtime.", "group_id": 81, "id": 125321}, {"user_id": 927, "stars": [], "topic_id": 6419, "date_created": 1297893223.316978, "message": "I found most of the problems were in edge cases: dealing with mobile devices, unicode in stylesheets, CSS3 media queries, etc. Sooner or later that kind of thing gets fixed.", "group_id": 81, "id": 125135}, {"user_id": 927, "stars": [], "topic_id": 6419, "date_created": 1297893251.977916, "message": "i.e. if it's on the server, the entire toolchain needs to work perfectly", "group_id": 81, "id": 125145}, {"user_id": 723, "stars": [], "topic_id": 6419, "date_created": 1297893266.624059, "message": "django-media-sync looks far more interesting than django-compressor or media_bundler, at least from a (very quick) scan of code/docs.", "group_id": 81, "id": 125152}, {"user_id": 228, "stars": [], "topic_id": 6419, "date_created": 1297893463.123966, "message": "but does so dyanamically, unless generator or bundler", "group_id": 81, "id": 125218}, {"user_id": 1126, "stars": [], "topic_id": 6419, "date_created": 1297893648.835475, "message": "I'll take a look at compressor again, it seems like it's improved a lot since I last was deciding", "group_id": 81, "id": 125269}, {"user_id": 723, "stars": [], "topic_id": 6419, "date_created": 1297894004.095829, "message": "heh", "group_id": 81, "id": 125351}, {"user_id": 1126, "stars": [], "topic_id": 6419, "date_created": 1297893341.9910109, "message": "well with mediagenerator it's just a single command in my fabric functions", "group_id": 81, "id": 125176}, {"user_id": 228, "stars": [], "topic_id": 6419, "date_created": 1297893863.9486549, "message": "but we end up having to have lots of different kinds of bundles/joined files because of the varied granularity of our css/js", "group_id": 81, "id": 125320}, {"user_id": 228, "stars": [], "topic_id": 6419, "date_created": 1297893947.534482, "message": "mediasync has some killer stuff for syncing files across different providors which seems really slick", "group_id": 81, "id": 125336}, {"user_id": 228, "stars": [], "topic_id": 6419, "date_created": 1297893997.3486569, "message": "granted this is all in theory--i'm actually working on moving mahalo to compresser as we speak :p", "group_id": 81, "id": 125346}, {"user_id": 723, "stars": [], "topic_id": 6419, "date_created": 1297894068.506958, "message": "ya i haven't tried compressor, so my criticism is all hand-wavey. right now we use a pure in-house solution that works pretty well, but there's some missing features that media-sync has that are probably worth swapping out to.", "group_id": 81, "id": 125358}, {"user_id": 723, "stars": [], "topic_id": 6419, "date_created": 1297894123.878073, "message": "our in-house solution bakes in a version number to the path of the file right now, which is more certainly good enough :)", "group_id": 81, "id": 125362}, {"user_id": 927, "stars": [], "topic_id": 6419, "date_created": 1297893386.115679, "message": "If it prepares static bundles, that's good", "group_id": 81, "id": 125196}, {"user_id": 228, "stars": [], "topic_id": 6419, "date_created": 1297893445.0839729, "message": "compressor can do both", "group_id": 81, "id": 125214}, {"user_id": 1126, "stars": [], "topic_id": 6419, "date_created": 1297893718.7492411, "message": "@jacob oh wow, yeah it was definitely compress that I had looked at before", "group_id": 81, "id": 125288}, {"user_id": 723, "stars": [], "topic_id": 6419, "date_created": 1297893784.4985549, "message": "@jacob https://github.com/sunlightlabs/django-mediasync search for JOINED FILES", "group_id": 81, "id": 125305}, {"user_id": 228, "stars": [], "topic_id": 6419, "date_created": 1297893818.495796, "message": "it does it in settings", "group_id": 81, "id": 125309}, {"user_id": 228, "stars": [], "topic_id": 6419, "date_created": 1297893827.800987, "message": "i mean", "group_id": 81, "id": 125313}, {"user_id": 723, "stars": [], "topic_id": 6419, "date_created": 1297894211.6246231, "message": "s/more/most/", "group_id": 81, "id": 125374}, {"user_id": 1126, "stars": [], "topic_id": 6419, "date_created": 1297893412.448698, "message": "it's never dynamically creating bundles on the fly in production", "group_id": 81, "id": 125206}, {"user_id": 228, "stars": [], "topic_id": 6419, "date_created": 1297894015.5720339, "message": "we're using bundler for now. but it's having to set everythign in a settings file that's driving me batty", "group_id": 81, "id": 125353}, {"user_id": 228, "stars": [], "topic_id": 6419, "date_created": 1297893701.1080339, "message": "mediasync doesn't do compression id on't think?", "group_id": 81, "id": 125284}, {"user_id": 228, "stars": [], "topic_id": 6419, "date_created": 1297893750.873559, "message": "@andy how does it define what the compressed/bundled file would locate?", "group_id": 81, "id": 125299}, {"user_id": 228, "stars": [], "topic_id": 6419, "date_created": 1297893816.869432, "message": "yeah, ok", "group_id": 81, "id": 125307}, {"user_id": 228, "stars": [], "topic_id": 6419, "date_created": 1297893819.642705, "message": "do not want", "group_id": 81, "id": 125310}, {"user_id": 228, "stars": [], "topic_id": 6419, "date_created": 1297893834.55299, "message": "that's a persona/application choice on our end", "group_id": 81, "id": 125315}, {"user_id": 228, "stars": [], "topic_id": 6419, "date_created": 1297893844.5697351, "message": "there's situations where it totally makes sense and isn't a huge tradeoff", "group_id": 81, "id": 125317}, {"user_id": 228, "stars": [], "topic_id": 6419, "date_created": 1297893769.356734, "message": "i see that it can compress/minify specific files", "group_id": 81, "id": 125300}, {"user_id": 228, "stars": [], "topic_id": 6419, "date_created": 1297894018.9153581, "message": "and what made me look for a switch", "group_id": 81, "id": 125355}, {"user_id": 927, "stars": [], "topic_id": 6419, "date_created": 1297893647.6498549, "message": "Sunlight has some properties which get quite a lot of traffic, too, so that's probably rather battle-tested", "group_id": 81, "id": 125267}, {"user_id": 1126, "stars": [], "topic_id": 6419, "date_created": 1297893728.0704679, "message": "thanks for the distinction", "group_id": 81, "id": 125292}, {"user_id": 723, "stars": [], "topic_id": 6419, "date_created": 1297893682.5372889, "message": "@acdha Yes, agreed.", "group_id": 81, "id": 125276}, {"user_id": 723, "stars": [], "topic_id": 6419, "date_created": 1297893948.380265, "message": "what we're looking at is using joined files for all our common code (well over 85% of css/js), and anything specialized is just served as a second file.", "group_id": 81, "id": 125337}, {"user_id": 723, "stars": [], "topic_id": 6419, "date_created": 1297894088.9900291, "message": "which prompted my initial question -- is a querystring parameter good enough for cache busting", "group_id": 81, "id": 125360}, {"user_id": 723, "stars": [], "topic_id": 6419, "date_created": 1297894093.5654261, "message": "because that's what mediasync uses.", "group_id": 81, "id": 125361}, {"user_id": 228, "stars": [], "topic_id": 6419, "date_created": 1297893951.199193, "message": "but not something we need", "group_id": 81, "id": 125338}, {"user_id": 1126, "stars": [], "topic_id": 6419, "date_created": 1297903910.2293379, "message": "@andy I've never personally seen anything wrong with querystring param for cache busting", "group_id": 81, "id": 127661}, {"user_id": 1126, "stars": [], "topic_id": 6419, "date_created": 1297903923.496763, "message": "and I've seen several major sites use it, so it should be fine", "group_id": 81, "id": 127665}, {"user_id": 723, "stars": [], "topic_id": 6419, "date_created": 1297904108.349875, "message": "cool", "group_id": 81, "id": 127693}]