Here are two scenarios:
1) In an initial inertial frame, front and back begin accelerating at the same time by the same amount. Then, per the same frame, deceleration begins at the same time, by the same amount until front and back are both at rest again. These will be simultaneous for this frame. Assume acceleration for a month. Then, the back will see the front move slowly away, to many times the initial separation. Then, before the back starts decelerating, they will see the front moving towards them. When the back finally stops decelerating, the original length will be restored. Both rocket clocks will show the exact same time, much, much less than clocks in the original frame.
2) In an inertial frame, back starts accelerating, accelerates for a month per the initial frame, then decelerates to stop. The motion of the front is governed by the rule that it always looks the same distance away, per the back. To achieve this, the front accelerates and decelerates less. This is a frame independent statement. Per the initial frame, the distance between them will shrink to a tiny fraction of the initial distance, then grow back. The front clock will have accumulated more time than the back, but this difference will be very small compared to the how much either is behind the initial frame clocks.
[edit: A couple of corrections to case 2, above. During deceleration, for born rigid motion, what was the front will have decelerate faster than the back. And, without doing the math, I don’t know how the clocks will end up, except they will be extremely close, because the front will be ticking slower than back, per the back, during deceleration. Also, from the original frame, both front and back will have covered the exact same distance, but with different velocity profile, so I see no obvious argument as to exactly how they end up comparing to each other.]