Nexus caching not working

Ah, I think I understand the problem you are having now. I think you should try setting both the contentMaxAge and metadataMaxAge to 0. That should ensure that fresh metadata is fetched from the remote on all requests instead of using a cached version. Many formats will tell the client if something exists or not solely based on the metadata and not by trying to download the artifact directly. Assuming that setting works, you will probably want to put some thought into a small, but non-zero age to avoid every request to nexus having to reach out to the remote.