|
My server is using keep alives. I've got my jscript and css in external files to let the browser cache them efficiently. On the other hand, I'm choosing quality over size when I save jpeg files, and I've got a few sites on the same account.
I'm guessing .htaccess is parsed by the server before it handles each request, because the changes take place immediately. Does anyone know if the file is cached until it's overwritten? I've implemented this in several applications, so it would be easy for Apache, but I'm not sure whether that's the case? If it's coming from memory that shouldn't be nearly as bad as if I'm incurring more disc I/O with each of the several requests it takes to render each page. On a gallery, that could be 20 or more thumbs, along with everything else.
I'd like to make it so that a link to a particular jpeg file that doesn't have my site, this one, or a few others, gets redirected to the page it would be displayed on. Right now I've got that set up to send requests for jpegs that aren't on a white list to my home page; there are more than a hundred photos and corresponding pages.
Basically, I don't want random sites to be able to either hotlink, or send people off to a jpeg of mine without the user also seeing the story behind the image, and navigation out to other photos they'd like. I'm not even selling prints or stock, I just want people to find their way into my galleries.
|