[Lift] Re: timestamp versioning for javascript includes

2009-04-30 Thread Alexander Kellett
On Wed, Apr 29, 2009 at 7:14 PM, David Pollak feeder.of.the.be...@gmail.com wrote: /classpath/date_2009_04_29_18_20/json.js i don't really see many advantages to having the number half way through the path, only disadvantages, it makes it slightly more difficult to see / copy and paste the

[Lift] Re: timestamp versioning for javascript includes

2009-04-29 Thread David Pollak
On Wed, Apr 29, 2009 at 9:19 AM, Lee Mighdoll l...@underneath.ca wrote: I'm trying to avoid having to clear the browser cache when I change a javascript file. One approach is to append a timestamp to the script src tag in the html file. script id=json src=/classpath/json.js

[Lift] Re: timestamp versioning for javascript includes

2009-04-29 Thread Lee Mighdoll
I'd rather have something like: /classpath/date_2009_04_29_18_20/json.js There are a couple of advantages: - It's human readable Readable is worth a few bytes, I agree. I like the date_ prefix too, it leaves room for using a hash approach at some future date. - - It's

[Lift] Re: timestamp versioning for javascript includes

2009-04-29 Thread David Pollak
On Wed, Apr 29, 2009 at 10:03 AM, Lee Mighdoll l...@underneath.ca wrote: I'd rather have something like: /classpath/date_2009_04_29_18_20/json.js There are a couple of advantages: - It's human readable Readable is worth a few bytes, I agree. I like the date_ prefix too, it

[Lift] Re: timestamp versioning for javascript includes

2009-04-29 Thread Lee Mighdoll
I think the browsers cache urls with params... a quick glance at the rails docs suggest they expect these requests to be cached, though I haven't tested it mysolf. I'd imagine this also needs to work for non-/classpath served files. Does that push us back to the params style? No, because

[Lift] Re: timestamp versioning for javascript includes

2009-04-29 Thread David Pollak
On Wed, Apr 29, 2009 at 10:58 AM, Lee Mighdoll l...@underneath.ca wrote: I think the browsers cache urls with params... a quick glance at the rails docs suggest they expect these requests to be cached, though I haven't tested it mysolf. I'd imagine this also needs to work for non-/classpath