Post-redirect-get pattern not followed with validation errors

I find a solution, im sure there a bettere solution but this one works for me:

change the header in layout/default.php

// prevent Confirm Form Resubmission
header(“Cache-Control: no-cache, must-revalidate, post-check=0, pre-check=0”);

cake set the header with no-store before no-cache