Have never been a fan of rear mounted gas cans, get a mental picture of somebody rear ending me and the can rupturing and bathing most of the Jeep in gas. Inside is even worse. On the roof? Most cans are likely to leak or seep, sometime. Gaskets last for years (hopefully) then the suckers, leak all over the place.
I used to carry cans, don´t anymore, because there just doesn´t seem to be any really good/safe place to store them.
One of the first things I do with any new to me XJ. Is install a hitch in the back. Not just for the trailer, but also as gas tank protection. Way to likely, if you get rear ended, some compact is going under the bumper and is gonna hit the tank. Outside mounted gas cans, is kinda of asking for it.
I do occasionally, store a couple of cans, in my trailer.
Recently found a guy, that makes tanks for a living (mostly trucks). For around $200 bucks I can have one built. Wouldn´t be real hard to put a tank under an XJ, with another ten gallons or so of volume. Made of heavy gauge steel, that doesn´t hang much lower than stock. Guy just needs a set of serious plans and measurements.