April 4, 2001 NOCACHE2.ASP I. Description This script is designed to send an image to a browser along with the the following HTTP HEADERS: Expires:0 Pragma: no-cache These headers will prevent most browsers from storing the image in the cache. Version 1 of the scripts would sometimes send a broken image if the original file was updated while being downloaded by a browser. Version 2 fixes this problem by creating a temporary copy of the file in a directory. The temporary copy is served to the browser and then deleted. II. Installation To install this script, copy it to a directory that has Script Executable privledges. Modify the following variables to reflect your local server settings: 1) imageFile = the filename of the image you are sending (i.e. test_image1.jpg) 2) imageDir= the directory where the original image is located 3) tempDir= the directory where the temp copy of the image will be stored The web server must be configured to allow this ASP to read the imageDir directory and write the tempDir directory. The imageDir and tempDir variables can point to the same directory.