alexharries
New Around Here
Hi Merlin,
I really enjoy using your firmware but I have to administer my router remotely via a slow internet connection.
Would it be possible to add a far-future cache-control header to static resources such as jquery.js and images, as each page load carries several hundred KB of files which could be cached by the browser.
To prevent stale files causing problems - e.g. when a firmware update takes place - you could add a query parameter to the end of each resource's URL which relates to the firmware version, e.g.:
<script language="JavaScript" type="text/javascript" src="/general.js?fw123.56b3"></script>
My back-of-a-napkin maths tells me this would probably save around 500KB per page load - on my ADSL upstream connection, that is a time saving of 20 seconds for every page load.
If I knew how to program C, I would try and provide a patch for you on Github, but I unfortunately can't help
Thanks very much in advance and please keep up the good work!
Alex H
I really enjoy using your firmware but I have to administer my router remotely via a slow internet connection.
Would it be possible to add a far-future cache-control header to static resources such as jquery.js and images, as each page load carries several hundred KB of files which could be cached by the browser.
To prevent stale files causing problems - e.g. when a firmware update takes place - you could add a query parameter to the end of each resource's URL which relates to the firmware version, e.g.:
<script language="JavaScript" type="text/javascript" src="/general.js?fw123.56b3"></script>
My back-of-a-napkin maths tells me this would probably save around 500KB per page load - on my ADSL upstream connection, that is a time saving of 20 seconds for every page load.
If I knew how to program C, I would try and provide a patch for you on Github, but I unfortunately can't help
Thanks very much in advance and please keep up the good work!
Alex H