SocketTools .NET Edition

HttpServer.CacheTime Property

Gets and sets a value that specifies the current cache time period.

[Visual Basic]
Public Property CacheTime As Integer
[C#]
public int CacheTime {get; set;}

Property Value

An integer value which specifies current cache time in seconds.

Remarks

The CacheTime property sets the amount of time that a client should cache a resource returned by the server. Setting this value to zero will disable caching, and a non-zero value will specify the number of seconds that the client should retain the content returned by the server.

Changing the value of this property will affect the Cache-Control and Expires headers that are sent to the client when responding to a request.

See Also