How can the issue of cached pages affecting the display of page history be addressed in PHP?

When cached pages are affecting the display of page history in PHP, one way to address this issue is to add a unique query parameter to the URL when navigating to the page history. This will force the browser to fetch the latest version of the page instead of serving a cached version.

<a href="page_history.php?page_id=<?php echo $page_id; ?>&timestamp=<?php echo time(); ?>">View Page History</a>