I have a PDF document that is generated from the data contained in the application, this pdf document is displayed using the media component primefaces, everything works fine, but to make changes to the data source I still shows the old document. So far I have solved by clearing the browser cache, but how could this problem solucioanr programming?
<p:media value="#{listadoFacturasMB.fileDownload}" width="100%" height="600px" player="pdf">
<f:param name="id" value="#{listadoFacturasMB.selectedFactura.idFactura}" />
</p:media>