I am setting this in C# with this line:
WebOperationContext.Current.OutgoingResponse.Headers.Add(HttpResponseHeader.Expires, DateTime.Now.AddSeconds(10).ToString());
Now I know the format is off on this as it expects the following: Tue, 06 Dec 2011 20:24:15 GMT
Is there a class in .NET implementing IFormatProvider I could leverage here? Or will I need to create my own?
You can use the Custom Date and Time Format Strings.
generate the above format like so: