The supermarket said the expiring food will be offered to charities and shop workers before customers could take it.