The airport, not the airline, sets the rule
Airlines do not write security rules. Each airport applies the rule set by its national aviation security authority. That rule depends on which scanners the airport currently runs, and how the regulator has chosen to use them.
Same trip, two different rules
Flying London Gatwick → Athens then Athens → London Gatwick? You'll face the 2L rule on the way out and the 100ml rule on the way back. Many travellers assume the rule "follows" their booking — it doesn't.
Pack to the stricter rule
The simplest mental model: look up the rule at both airports, pick the stricter one, and pack to that for your whole trip. If your return airport is unknown, default to 100ml — that's the global baseline.