Register FAQ / Rules Forum Spy Search Today's Posts Mark Forums Read
Go Back   MacRumors Forums > Special Interests > Visual Media > Web Design and Development

Reply
 
Thread Tools Search this Thread Display Modes
Old Feb 2, 2006, 10:02 PM   #1
Rethin
macrumors newbie
 
Join Date: Jun 2005
Location: Tokyo
Site won't refresh through Proxy

Here's the deal. I keep a small website for my local running club. The site gets updated very often, usually every other day or so.

The problem lies when others (and myself) try to access the page from work behind a proxy server. The proxy almost always serves a stale page. Most of the users aren't savy enough to keep hitting refesh until the proxy goes out and grabs the latest page.

I added these tags to the header.

<meta http-equiv="cache-control" content="no-cache, must-revalidate">
<META HTTP-EQUIV="Pragma" CONTENT="no-cache">
<META HTTP-EQUIV="Expires" CONTENT="-1">

This helped a little but my proxy server still gives me stale pages when I view the site.

I know very little about web developing so any help will be greatly appreciated.

Thanks

Rethin
Rethin is offline   0 Reply With Quote
Old Feb 5, 2006, 07:25 PM   #2
Rethin
Thread Starter
macrumors newbie
 
Join Date: Jun 2005
Location: Tokyo
Hmmm....

Kinda quiet on this thread.

Let me add some more details, maybe that'll help people help me.

The problem might lie in the structure of the page. Its very deep nested in frames and iframes. If I request a page directly (by passing all the frames by putting the page I want to refresh in the url bar) I get a fresh page. If I just load up the index.html and view the page through the frames it often is stale.


You can view the site at http://www.tlh3.com

Just be nice, like I said I'm not a web developer.

Thanks

Rethin
Rethin is offline   0 Reply With Quote
Old Feb 5, 2006, 09:11 PM   #3
jeremy.king
macrumors 603
 
jeremy.king's Avatar
 
Join Date: Jul 2002
Location: Fox Lake, IL
did you add those meta tags to ALL of the pages included in the frameset, including the index page?

You may also want to try a value of no-store in your pragma meta tag...
jeremy.king is offline   0 Reply With Quote
Old Feb 5, 2006, 09:34 PM   #4
Rethin
Thread Starter
macrumors newbie
 
Join Date: Jun 2005
Location: Tokyo
You mean like this?
<META HTTP-EQUIV="Pragma" CONTENT="no-cache, no-store">

I put the header in all the pages.
The heirachy looks like this

index.html (which holds 2 frames)

nav_frame
nav.html

main_frame
main_i.html (which holds an i_frame)
main.html

If I load up main_i.html in the browser and keep hitting refresh I keep getting stale pages.
If I load up main.html in the browser and hit refresh I get the fresh page after one refresh.


Rethin
Rethin is offline   0 Reply With Quote
Old Feb 10, 2006, 02:02 AM   #5
Rethin
Thread Starter
macrumors newbie
 
Join Date: Jun 2005
Location: Tokyo
Try it out

Okay, if anybody is stuck at work behind a proxy you can see exactly what I'm talking about.

Just goto the forum section and post a message (just put test in the subject, I'll delete it later). Then click on the forum link and your new message won't appear.

Then type in the url directly

http://www.tlh3.com/board/wwwboard.html

Hit F5 once or twice and you can see your new message.

Once you do this the problem and (hopefully) the solution will become clear.

Thanks

Rethin
Rethin is offline   0 Reply With Quote
Old Feb 10, 2006, 02:05 AM   #6
superbovine
macrumors 68030
 
superbovine's Avatar
 
Join Date: Nov 2003
force you proxy not to cache your website tell it COW SAID SO.

seriously, ask your admin if s/he'd hook you up.
superbovine is offline   0 Reply With Quote
Old Feb 10, 2006, 02:17 AM   #7
Rethin
Thread Starter
macrumors newbie
 
Join Date: Jun 2005
Location: Tokyo
Quote:
Originally Posted by superbovine
force you proxy not to cache your website tell it COW SAID SO.

seriously, ask your admin if s/he'd hook you up.
Its not so much of a problem for me. The problem is for all the other members of the club that try to view it from work. Asking them to ask their admins is not really practical.

Beside, I don't want to draw any attention to all those hits on a non-work related site.

Rethin
Rethin is offline   0 Reply With Quote
Old Feb 10, 2006, 01:43 PM   #8
superbovine
macrumors 68030
 
superbovine's Avatar
 
Join Date: Nov 2003
Quote:
Originally Posted by Rethin
Its not so much of a problem for me. The problem is for all the other members of the club that try to view it from work. Asking them to ask their admins is not really practical.

Beside, I don't want to draw any attention to all those hits on a non-work related site.

Rethin
heh...well control of the proxy server is the only way to solve your problem.
superbovine is offline   0 Reply With Quote
Old Feb 13, 2006, 02:33 AM   #9
Rethin
Thread Starter
macrumors newbie
 
Join Date: Jun 2005
Location: Tokyo
Quote:
Originally Posted by superbovine
heh...well control of the proxy server is the only way to solve your problem.

The ONLY way

Surely some web guru out there must know of a way to work around this problem.
Rethin is offline   0 Reply With Quote

Reply
MacRumors Forums > Special Interests > Visual Media > Web Design and Development

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
thread Thread Starter Forum Replies Last Post
Safari top sites won't accept drag'n'drop kharisma Mac Applications and Mac App Store 3 Jul 24, 2011 07:41 AM
Web Proxy - toggle by site? brijazz Mac OS X 2 Jun 20, 2011 07:06 PM
Site Won't Load (Unless through proxy) Snipeye Mac Basics and Help 9 May 5, 2010 03:16 PM
Are you a genius? Peer 2 Peer internet sharing through proxy... HOW!! Koobs123 Mac OS X Server, Xserve, and Networking 0 Oct 30, 2008 02:13 PM
NetShade through proxy? M@lew Mac Applications and Mac App Store 0 Mar 6, 2007 04:43 AM


All times are GMT -5. The time now is 12:37 PM.

Mac Rumors | Mac | iPhone | iPhone Game Reviews | iPhone Apps

Mobile Version | Fixed | Fluid | Fluid HD
Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

Privacy / DMCA contact / Affiliate and FTC Disclosure
Copyright 2002-2013, MacRumors.com, LLC