Update (2014/08/20):
Oh, well.. They are once again caching for only 1 hour. It may have this way for a while, but I haven't noticed it as I haven't been using mobile.
Update (2014/07/19):
For most users, this is no longer needed! :)
Check out my replies below for more info.
Original post:
Hey!
As some of you may have already noticed, RESPO considerably increased bandwidth usage. That'll surely be fixed with time, but there's something we can do in the meantime: set up a forward proxy. Yes, this is meant for the very tech savvy players, unfortunately.
What we'll do is run a web server in our machines as a forward proxy. It'll then add http headers to certain requests - javascript and image files - that instruct the browser to cache the resources. Using this method the average page load will go down from 800kb-2mb to 25kb-60kb, and we can even log in from mobile devices as long as the computer is on! Plus, the smaller pages will mean faster load speeds.
You could use any server for this, but I chose nginx:
1. Download and install it (either from your preferred package manager or the website:http://nginx.org/en/download.html).
2. Find your nginx.conf configuration file: the default places are/usr/local/nginx/conf, /etc/nginx, /usr/local/etc/nginx or in the extracted folder in Windows's case.
3. Substitute it with this file. I also recommend you to read through it. It's a simple configuration to control requests to torn.com.
4. Run nginx. Simply running ./nginx or nginx.exe should do, in most cases. If you need more info, check outthis helpful tutorial.
5. Point your operating system's proxy to localhost:8080. In OS X this is inNetwork Preferences > Advanced > Proxies and in Windows you can find it inInternet Options > Connections > Use a proxy server for your lan.
That's it, from now on your browsers should cache resources and save you bandwidth. If you wish to use this via your mobile phone, configure its proxy server using your computers' external IP.
I should mention that while this saves a lot of bandwidth and gives you a performance boost, you'll still see the blank page for a second sometimes. That's because Torn's javascript files are all included in the page's head, blocking the rendering process. Until Torn's devs change this, I'm afraid we'll keep waiting for the blank page. -- Hey, devs, move them to the body footer! Much appreciated :P
If all of this went over your head, I'm sorry. I wouldn't recommend anyone to run random software from someone over the internet without understanding about the process, anyway.
If you have any problems though, I'm all ears. :)
Ps. If you make modifications to your nginx.conf file after starting nginx, you should runnginx -s reloadto update it.
Oh, well.. They are once again caching for only 1 hour. It may have this way for a while, but I haven't noticed it as I haven't been using mobile.
Update (2014/07/19):
For most users, this is no longer needed! :)
Check out my replies below for more info.
Original post:
Hey!
As some of you may have already noticed, RESPO considerably increased bandwidth usage. That'll surely be fixed with time, but there's something we can do in the meantime: set up a forward proxy. Yes, this is meant for the very tech savvy players, unfortunately.
What we'll do is run a web server in our machines as a forward proxy. It'll then add http headers to certain requests - javascript and image files - that instruct the browser to cache the resources. Using this method the average page load will go down from 800kb-2mb to 25kb-60kb, and we can even log in from mobile devices as long as the computer is on! Plus, the smaller pages will mean faster load speeds.
You could use any server for this, but I chose nginx:
1. Download and install it (either from your preferred package manager or the website:http://nginx.org/en/download.html).
2. Find your nginx.conf configuration file: the default places are/usr/local/nginx/conf, /etc/nginx, /usr/local/etc/nginx or in the extracted folder in Windows's case.
3. Substitute it with this file. I also recommend you to read through it. It's a simple configuration to control requests to torn.com.
4. Run nginx. Simply running ./nginx or nginx.exe should do, in most cases. If you need more info, check outthis helpful tutorial.
5. Point your operating system's proxy to localhost:8080. In OS X this is inNetwork Preferences > Advanced > Proxies and in Windows you can find it inInternet Options > Connections > Use a proxy server for your lan.
That's it, from now on your browsers should cache resources and save you bandwidth. If you wish to use this via your mobile phone, configure its proxy server using your computers' external IP.
I should mention that while this saves a lot of bandwidth and gives you a performance boost, you'll still see the blank page for a second sometimes. That's because Torn's javascript files are all included in the page's head, blocking the rendering process. Until Torn's devs change this, I'm afraid we'll keep waiting for the blank page. -- Hey, devs, move them to the body footer! Much appreciated :P
If all of this went over your head, I'm sorry. I wouldn't recommend anyone to run random software from someone over the internet without understanding about the process, anyway.
If you have any problems though, I'm all ears. :)
Ps. If you make modifications to your nginx.conf file after starting nginx, you should runnginx -s reloadto update it.