HTTP Redirection in DWSWebServer

DWS_serverHere is a small snippet to illustrate how you can perform a conditional HTTP 301 redirection in DWScript, and can serve as an illustration on serving “special” HTTP responses.

This is useful when a website is moved from one domain to another, but the server is not, ie. if  both old and new domains are hosted by the same server.

(more…)

Flush Windows File Cache

sweepHere is a small utility I made whose purpose is to flush (empty) the Windows file cache. It can also flush and purge memory working sets, standby and modified lists.

It can be useful to reduce memory usage of a particular VM (on a host with dynamic memory) or for testing and bench-marking purposes.

(more…)