now correctly handling front cache