Preserving Gitlab pages between pipelines/jobs

I am trying to generate test reports via pipeline. Html is generated and I am able to access the Gitlab page for the same. However the issue arises if a new pipeline (or even if a job) is triggered, test report is generated and the previous one gives 404 error. (URLs are different) i.e for eg: example.gitlab.io/project/{CI_PIPELINE_ID}/ or {CI_JOB_ID}

The use case is that this does not give me an option to compare between test reports.

A solution was to cache the public folder and then I am able to access different versions of the test in their respective URLs. However I am not sure if that is correct for I have to clear the cache manually which I believe is only available to the maintainers and owners of the project.

Is there any other way to preserve the Gitlab pages from the previous pipelines?

Edited by ullas kakanadan