Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Akamai Cache refresh

How often does Akamai refresh cache?

We use Akamai to cache frequently accessed files. When uploading and overwriting files to the Akamai FTP, I can't see the new file reflected live.

Anybody have any experience with this?

like image 758
sthg Avatar asked Dec 09 '08 01:12

sthg


2 Answers

Bear in mind that the files may be cached elsewhere as well, including at any proxy servers that the client is behind or in the browser's cache itself. An easy way to get around this is to add a query string to the URL, and change the value each time you update the files, or set it to a random value to bypass the cache each time. The server will ignore the query string, but the browser and proxies will think it is a completely different URL and re-request it.

For instance, instead of requesting:

styles.css

request:

styles.css?version=1

like image 165
X-Cubed Avatar answered Nov 11 '22 09:11

X-Cubed


It is configurable. You will need to talk to whoever in your organisation manages your Akamai account. They will have access to change how and what things are cached. If necessary, they can put you in touch with a technical contact at Akamai.

like image 23
staticsan Avatar answered Nov 11 '22 08:11

staticsan