can the piwik js file be cached?
That means it will affect my stats ?
It’s ok to cache piwik.js. It’s a static resource.
Conversely, it is not ok to cache the output from piwik.php.
Thanks for explain. Question is my developer team want to cache this file and they want to put some expiration time something like that so page or apps load pretty fast. Is this possible i explicity specify to cache this file?
Yes you can
If you are running Apache try this:
(httpd-vhosts.conf or httpd-ssl.conf)
You will need mod_expires loaded
This config tested in Apache 2.2 and 2.4.