LebGeeks

A community for technology geeks in Lebanon.

You are not logged in.

#1 May 4 2010

pikatore
Member

Cache Server Hell

Is there any way I can get around the cache servers with Sodetel? They are driving me insane.

I'm tired of sending dumming PHP requests on my URL to achieve this. Any other way to do it? Do other ISPs do this?

Offline

#2 May 4 2010

rolf
Member

Re: Cache Server Hell

You need a packet accelerator. It is a device that accelerates packets in a loop, and then releases them in the connection when they have picked up enough speed. If you accelerate packets enough they will blast right through the sodetel "cache" and you will have a direct connection.

BTW what is "sending dumming PHP requests"? How do you manage to go bypass the cache now?

Offline

#3 May 4 2010

arithma
Member

Re: Cache Server Hell

But be aware of high speed packet collisions. It might create an electronic black hole and your hardware may disappear instantaneously with even more dangerous radioactive radiation.

For the first part, when solving cache issues, I turn off caching in the browser:
about:config -> network.http.use-cache -> set false

As for the ISP side caching, there must be some HTTP trick to do that for you. If you find anything on the web, let us know.. I'll look at it later tonight.

Offline

#4 May 4 2010

rolf
Member

Re: Cache Server Hell

If you have a friend in UK, US, or something (or a VPS), you could set up a tunnel with him (or it).
I don't, personally, so I tried this years ago: http://www.http-tunnel.com/html/solutio … client.asp
It kinda worked for accelerating P2P downloads which were heavily throttled back then. But they havent changed their website since, and they're a bit on the expensive side too.
If you have a friend/VPS, you could set up something like this:
http://www.jumperz.net/index.php?i=2&a=0&b=0
(its just a quick example)
You could try setting up a VPN too, which will have the same effect (i think it's easier in Windows) but last time I tested it it turned out to be quite inefficient for Windows Shares (SMB) browsing. But it might be OK for HTTP...
I'm sure it wont have too much impact on his connection. Tunelling might also be bundled in linux by default also.
But tunneling for end-users is not a very widespread technology so you might have some trouble with finding docs, proper code, and implementing... so I wish you good luck if you go there!!!!
Otherwise, they might be other tricks. There is a PHP CGI proxy, but it doesnt work well with Javasctipt, among others. I wonder if a better implementation can be written :-D ...
As for HTTP tricks, you can probably set the headers and stuff. Although this is the simplest solution, these can be overridden at the cache. But I'll let arithma answer on that, maybe he will bring up something good.

In the end, I recommend patience and/or a good connection. I've tried some tricks above, and I think they add a layer of complexity and often the time and hair-pulling isnt worth the frustrating results. But I don't want to discourage you either, because in theory these should work well.

Oh, and nuclearcat has some info about an internet accelerator. That would be a good thing, tunelling + compression.

Last edited by rolf (May 4 2010)

Offline

#5 May 4 2010

pikatore
Member

Re: Cache Server Hell

Thanks guys for your input.

Rolf, I actually meant DUMMY php requests, it's pretty much the act of putting a question mark on urls I type in, which fetches new HTML code.

However, it doesn't do this for images. I have to (god it's so effing annoying) open firefox and have firebug, and actually manually put question marks after the urls of the images/css files i want to refresh. Either that or I rename new uploaded images to a different name and modify the HTML code in the PHP file to reflect it.

Goddam it's annoying. The only thing that makes it BEARABLE is that I use Wordpress for the sites I build, and that means that when it comes to the document HTML, changes are instant because Wordpress generates it on every pageview.

For CSS and images however I have to do the question mark trick. Cache servers are effing retarded, and I want to shoot whatever cheap bastard put them in place for this entire country.

Last edited by pikatore (May 4 2010)

Offline

#6 May 4 2010

arithma
Member

Re: Cache Server Hell

I know, make some kind of javascript that searches for all images on your page and reloads them with an added query string. There's a couple of hoops to jump, not more. If you know GreaseMonkey, it's even better - No need to set debug versions and release versions or worry about forgetting.

Offline

#7 May 4 2010

rolf
Member

Re: Cache Server Hell

pikatore wrote:

Rolf, I actually meant DUMMY php requests, it's pretty much the act of putting a question mark on urls I type in, which fetches new HTML code.

If that works well then your best bet would probably be to install scriptmonkey to automate the process you described (images and all included). Do you think that would work?
Thanks for the tip btw, i never knew this could work :)

Also, dont be quick to "shoot" the cache admin, maybe he's acting compliant. There are http headers you can send to change the cach behavior (in addition to meta tags). You can send them using the php function header(). But if the cache is not compliant that that may be useless and a waste of effort.

Last edited by rolf (May 4 2010)

Offline

#8 May 4 2010

nuclearcat
Member

Re: Cache Server Hell

use options in .htaccess to force expire content... if hosting allow this

Offline

#9 May 5 2010

pikatore
Member

Re: Cache Server Hell

rolf wrote:

Thanks for the tip btw, i never knew this could work :)

Note: It's only a temporary fix. Every dummy request is cached too, so that means for each new refresh of a URL, you need to add another question mark... X(

Offline

#10 May 11 2010

sandbox
Member

Re: Cache Server Hell

Have you tried using an open proxy on the net ? Some run on port 80 if your ISP blocks other ports
Also what about setting up your own web proxy using googleapp, give that a go: http://www.labnol.org/internet/setup-pr … ver/12890/

Let us know if any of the above works.

sandbox

Offline

#11 May 14 2010

darko
Member

Re: Cache Server Hell

yeah, having the same exact problem(working with wordpress too), just use hidemyass or any other anonymous service to check the site. Btw this isnt a sodetel only problem, my friend is with terranet and he's still having the same problem. What i find funny is the way caching works, say they cache a header.jpg file for example, so when u update that file  www.website.com/header.jpg is treated as being diffrent then website.com/header.jpg. Anyway this is something new that didnt exist before and it would nice to know who's the genius behind this idea

i thought about calling them but knowing the stuff i know about sodetel, i'm pretty sure they wont understand a word i say

Offline

#12 May 15 2010

sandbox
Member

Re: Cache Server Hell

I am not in lebanon so I can't try this suggestion but have you tried accessing the website which you are having a problem with using SSL?

I think what will happen is that http://www.somewebsite.com/image.jpg will not come up correctly because it is cached but https://www.somewebsite.com/image.jpg  will reflect the current file on that website.

Are you or others able to give it a go and report back ?

you can generate your own free SSL certificates with windows/linux or get some for a trial period from the net


Sandbox

Offline

Board footer