Resource handling for localhost