ReliefLabs / EasyTomato

Easy Tomato is a modified version of TomatoUSB, which is in turn a modified version of Jonathan Zarate’s excellent open source Tomato firmware. Relief Labs has worked to make this powerful firmware accessible to less technical users through easy to use documentation and a simplified interface
http://www.easytomato.org/
Other
63 stars 19 forks source link

Longer browser caching of ET interface. #46

Open wrdixon opened 11 years ago

wrdixon commented 11 years ago

When remotely logging into ET, it's a ~360k to get. That's a LOT of data to push on a slow, congested connection, making the first connection very slow.

We should change this to have a very long cache timeout to keep the loading quick when someone remotely connects.

fougner commented 11 years ago

Partly related, maybe use Google's CDN for jquery at least?

https://developers.google.com/speed/libraries/devguide#jquery

djfurie commented 11 years ago

I think that would help people remoting in from the WAN side of things, but we'd want to serve things up from the router itself if they are connecting from the LAN side. It may be possible to determine and then we'd have a server side function like <% include_jquery_path() %> to insert the appropriate path.

wrdixon commented 11 years ago

I agree with djfurie. Also we rolled our own to make it smaller. Seems like just putting a few week cache on would do just fine.

It just kills you to wait 30+seconds on first load, every time...

djfurie commented 11 years ago

This is mainly a note to myself.... I think we can do the hybrid approach and host it from google as fougner suggested. There is a function: int get_client_info(char mac, char ifname) that should return the interface that the client is logged in through.