in reply to URL string compression?

Assuming you have a DB (& most places do), how about storing the "ID" in the DB and (optionally if the files aren't too big) storing the files in a BLOB col in DB? Or store the files externally & store filepath along with ID in DB.