Never hurts to upgrade the brake hose to Teflon stainless steel braided lines for a no expansion brake line. It will give you solid feedback and the old lines if original have done their job.
A remote possibility that the internals of the lines are failing causing the lines to act like a one way valve. Clean the tiny hole in the master cylinder with a very small stiff wire and your probably going to have working brakes. Disassembling the caliper (pulling piston) and replacing the seal with a new seal and cleaning the groove is good maintenance. Replacing seal maybe every 8-10 years or as needed. Use good clean fluid, I like Castrol GTLMA but it is hard to find these days. Not as many places carrying it. Brake fluid draws water, so it needs to be completely drained/flushed/bled in your brake to purge the old fluid and replaced with clean new fluid a minimum every 2 years. Using a freshly opened container is recommended so you know it has not been drawing moisture into the container, even with a cap on it it will have water making its way into the fluid. Water in your brake system can boil causing major issues as well as cause rusting or oxidation of aluminum and other metals.
But, if you can get your master cylinder bled as it sounds like it has a blockage as others have pointed to the small , and we do mean tiny, hole in the Master Cylinder that gets blocked with a tiny piece of debris.
Start with the inexpensive and move to more expensive rather than throwing money at a problem...far cheaper in the long run.
David