Re: Determining Permutation on Server

2010-03-25 Thread Nathan Wells
On Mar 24, 11:42 am, Thomas Broyer t.bro...@gmail.com wrote: On Mar 24, 5:09 pm, Nathan Wells nwwe...@gmail.com wrote: You're correct, in more complex environments where a more robust property provider is necessary, my approach wouldn't do much good. But then, I'm not talking about

Re: Determining Permutation on Server

2010-03-24 Thread mmoossen
+1 great idea, i think caching has to be handled carefully but there should not be any stoppers. Michael On Mar 23, 5:15 pm, Nathan Wells nwwe...@gmail.com wrote: Ooo good point... but couldn't you just set caching headers on the result? I guess I'm not clear on the intricacies of how each

Re: Determining Permutation on Server

2010-03-24 Thread Nathan Wells
You're correct, in more complex environments where a more robust property provider is necessary, my approach wouldn't do much good. But then, I'm not talking about handling those use cases. The goal is to not make an unnecessary request, and if I have the user agent in the server on the initial

Re: Determining Permutation on Server

2010-03-24 Thread Thomas Broyer
On Mar 24, 5:09 pm, Nathan Wells nwwe...@gmail.com wrote: You're correct, in more complex environments where a more robust property provider is necessary, my approach wouldn't do much good. But then, I'm not talking about handling those use cases. The goal is to not make an unnecessary

Determining Permutation on Server

2010-03-23 Thread Nathan Wells
Is there a reason you wouldn't want to determine which permutation to send on the server rather than the client? What I'm thinking is that you could eliminate the need for the selector script entirely if you had a smart enough server. You could even auto generate the code using a linker, I would

Re: Determining Permutation on Server

2010-03-23 Thread Ian Bambury
How would you determine if the current code had been cached on the client or not? Ian http://examples.roughian.com On 23 March 2010 14:41, Nathan Wells nwwe...@gmail.com wrote: Is there a reason you wouldn't want to determine which permutation to send on the server rather than the client?

Re: Determining Permutation on Server

2010-03-23 Thread Nathan Wells
Ooo good point... but couldn't you just set caching headers on the result? I guess I'm not clear on the intricacies of how each browser would handle this, but you could keep track of whether the app was modified on the server. If it hasn't been modified, then send 304. Or am I missing something?