Question: is 40 miles a long bike ride?
Answer: 40 miles should not be considered a Long ride and doesn't need any special recovery. If you do feel sore, check GCN on Youtube for some post-ride stretches. These followed by a warm shower and good nutrition should see you through. Make sure you are well hydrated and well nourished all through the ride.