This may or may not let you do what you need. See [asp-help.com ] for some more info.
Name it nph- and build the header as desired.
Seriesint, good find! It seems like a given that they would build nph capabilities into IIS, but I was beginning to wonder. ''
Actually, the question was mostly academic, I was digging around for a friend to explore option for how to avoid 304 errors... Or in other words, how it could stay "fresh!".;)
Call Response.AddHeader("P3P", "policyref=""/w3c/p3p.xml""")
Another example...ASP pages never send the Last-Modified header (I believe that .htm and .html pages do). So if you want to send the Last-Modifed header as being the date and time the page was requested:
Call Response.AddHeader("Last-Modified", RFC1123Date(Now))
Function RFC1123Date(dateSpec)
Dim astrDay
Dim astrNum
Dim astrMonthastrDay = Array("Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat")
astrNum = Array( "00", _
"01", "02", "03", "04", "05", "06", "07", "08", "09", "10", _
"11", "12", "13", "14", "15", "16", "17", "18", "19", "20", _
"21", "22", "23", "24", "25", "26", "27", "28", "29", "30", _
"31", "32", "33", "34", "35", "36", "37", "38", "39", "40", _
"41", "42", "43", "44", "45", "46", "47", "48", "49", "50", _
"51", "52", "53", "54", "55", "56", "57", "58", "59", "60")
astrMonth = Array("Jan", "Feb", "Mar", "Apr", "May", "Jun", _
"Jul", "Aug", "Sep", "Oct", "Nov", "Dec")
RFC1123Date = astrDay(WeekDay(dateSpec) - 1) & ", " & astrNum(Day(dateSpec)) _
& " " & astrMonth(Month(dateSpec) - 1) & " " & Year(dateSpec) _
& " " & astrNum(Hour(dateSpec)) & ":" & astrNum(Minute(dateSpec)) _
& ":" & astrNum(Second(dateSpec)) & " " & Application("TimeZone")
End Function
Application("TimeZone") = "-0800"'From RFC0822