Porsche Cayman S - Intermittent Problem with Brakes - amp33385

I have a Cayman S which basically has almost zero braking maybe one time in 20. On the other occasions it brakes ok.
When it doesn't work properly the pedal stays firm rather than going to the floor but just doesn't slow the car down properly
The front discs & pads were approaching the end of their life but there was no odd braking noises / other signs of a fundamental problem
I asked the garage to check it out & change the discs & pads.

Their assessment is that there is no obvious fault anywhere in the braking system, having checked everything over (fluid fine, no sign of leaks, master cylinder ok...)

They can't replicate the fault but having changed the discs & pads say the brakes are miles better in general use
Has anyone had a similar intermittent problem or have any ideas what the problem might be - I am surprised that just changing discs & pads has solved this. I don't have any idea what to ask them to do next / how to isolate the problem

Porsche Cayman S - Intermittent Problem with Brakes - Peter D

First thing I would do is change the one way vacuum valve at the servo. If this valve fails it can cause a loss of vacuum and the pedal will be firm and ineffective. Just sit in the drive with the engine off and use the pedal 10 times and it will then feel like your fault. Also check the brake operation before starting the cat after it has stood all night, or day. The brake should operate properly at least 2/3 times before it hardens. Regards Peter