Post Reply 
"If-Modified-Since" and congested networks.
Dec. 21, 2009, 03:20 AM
Post: #1
"If-Modified-Since" and congested networks.
The browser may send an "If-Modified-Since:" header
to the server before it loads a file in its cache.
This can slow things down.

The Proxomitron can redirect requests accompanied by an
"If-Modified-Since:" header and then respond with "HTTP/1.1 304 Not Modified".
The browser should then load the cached file.
This should be quicker than waiting for a remote server
but important files may not be updated.

Have fun.

HTH

Code:
In = FALSE
Out = TRUE
Key = "If-Modified-Since: Use Browser's cache (Out)"
URL = "(^127.0.0.1)"
Match = "(?*)\1&$RDIR(http://local.ptron/c.gif?\u)"
Replace = "\1"

# Redirects request to http://local.ptron/c.gif

In = TRUE
Out = FALSE
Key = "Last-Modified: Use Browser's cache (In)"
Match = "$RESP(20*)((?*)\1|$SET(\1=Sat, 30 Jun 2001 15:43:58 GMT))"
Replace = "\1"

# Adds "Last-Modified:" header to some responses to cause Browser to
# add "If-Modified-Since:" header to some requests.
Add Thank You Quote this message in a reply
Post Reply 


Forum Jump: