
12-03-2012, 06:22 PM
|
|
Member
|
|
Join Date: Mar 2011
Posts: 43
|
|
Quote:
Originally Posted by NiteWave
if the image's suffic is jpg/png etc, I think still ok to use X-LiteSpeed-Location
the X-LiteSpeed-Location is like redirect (but internal not external), pass this file to web server(here litespeed) to handle it. so if the file name is .jpg, web server will think it a jpeg image and generate proper headers for it.
|
Unfortunately my site doesn't retain the extension of the file on the disk (but does in the database) - is there any way to trick LiteSpeed into thinking it's a .jpg?
|