Welcome Guest, Not a member yet? Register   Sign In
Route with timestamp
#1

Hi,

I need a way to prevent a page from getting cached, so I added a timestamp to the url like this:

Code:
echo '<li>' . anchor('/account/?_='. time(), 'My Account', array('class'=>'leaf last')) . '</li>';

This gives a link like: /account/?_=1504635140

The route looks like this:

Code:
$route['account']                                  = 'account';
$route['account/(:any)']                           = 'account/$1';

This doesn't work because it results in a nginx 404 Page not found.

Any idea how to get this working?
Reply




Theme © iAndrew 2016 - Forum software by © MyBB