Post Reply 
"204 No Content" at Picasa
Feb. 25, 2009, 07:21 PM
Post: #1
"204 No Content" at Picasa
Updated Mar 03

Below is a new header filter, which addresses odd page loading behavior on Picasa member pages.
It is a result of the discussion here:
http://prxbx.com/forums/showthread.php?t...2#pid11422

Code:
[HTTP headers]
In = TRUE
Out = FALSE
Key = "Content-Length: 2 Add if Needed    9.02.26 [gc sd] (d.2) (In)"
URL = "$RESP(1|204|304)(^$TST(keyword=*.a_headers.*))"
Match = "(^?)&$RESP((???)\0)$LOG(wRESP $DTM(c) : Content-Length 0 added: \0 response)($TST(volat=*.log:2*)$ADDLST(Log-Main,[$DTM(d T)]\tHDR_In \0 no CL\t\u Ref: $GET(hOrigRef))|)($TST(\0=[12]*)$TST(volat=*.log:[12]*)$ADDLST(Log-Rare,HDR_In \0 no CL\t\u Ref: $GET(hOrigRef))|)"
Replace = "0"

Although only seen at Picasa so far, it's a general issue about properly handling HTTP responses, and thus important.
(Quite similar to the "Content-Type: 5d Filter Redirects w/o Location" header filter, facing what is also a Google issue in the first place.)


Below is an updated header filter (skips 204 responses):
Code:
[HTTP headers]
In = TRUE
Out = FALSE
Key = "Content-Type: 5a Filter sel. Text Types     9.02.25 [sd] (d.r l.3) (In)"
URL = "^$RESP(204|3)|$TST(hRealCT=*)|$TST(keyword=*.(a_headers|a_type_t|i_level:[12]).*)|$TST(volat=*.post:1.*)|$TST(uExt=exe|gz)"
Match = "text/plain(^*; Prx(^Msg: Fixed acc. to Original))$SET(1=\0)|(^?)($TST(hOrigUA=*msie(^*opera)*)$SET(1=text/plain)|)$SET(2=: No Content-Type)&\0&($TST(volat=*.log:2*)$ADDLST(Log-Main,[$DTM(d T)]\tHDR_In CT_FilterTrue\t\1\2 \t\u)|)$LOG(CRESP $DTM(c) : Content-Type: Filter True: \1)"
Replace = "\1; PrxMsg: Filter Text\2$SET(hRealCT=filter)$FILTER(1)"


Both filters are flagged as "TEST", because they should be run by some people for some time, before going final.
Add Thank You Quote this message in a reply
Post Reply 


Messages In This Thread
"204 No Content" at Picasa - sidki3003 - Feb. 25, 2009 07:21 PM
RE: "204 No Content" at Picasa - sidki3003 - Feb. 27, 2009, 12:32 AM
RE: "204 No Content" at Picasa - Graycode - Feb. 27, 2009, 03:12 AM
RE: "204 No Content" at Picasa - sidki3003 - Mar. 03, 2009, 10:03 PM

Forum Jump: