Sure, some castes (like Brahmins) have had stricter rules, while some had laxer ones (for Kshatriyas, Vysyas & Sudras)
But I do know that eating out and eating only freshly cooked food was always the norm.
Also, Dhabas and Street Vendors, are a relatively newer thing, starting up in about 1800's.