By usamam on Monday, 02 April 2018
Posted in General
Likes 0
Views 405
Votes 0
Hi,
I have removed the &ts_xxxxx timestamp adding function from site-2.1.8.min.js from easysocial's .js file in media folder. It seems that everything is working fine, but i want to exactly know the impact it will have on the system?
It was important for me to remove the timestamp from the urls being called by javascript, which was unnessesary creating access logs in webserver, database, firewalls, web access log and joomla duplicate url checker.
After removing the function, the system is free and less heavier, but i want to know the affects it will have on the system? why is it being used at the first place?
Hi Usamam,

The reason why we append the timestamp is to avoid cache by the browser where it was effect on IE 9 and older.
It’s well known that Internet Explorer aggressively caches ajax calls whereas all the other browsers grab the data fresh every time. This is usually bad: I’ve never encountered a case where I want ajax to NOT contact the server.


references:
https://stackoverflow.com/questions/43017114/append-timestamp-to-ajax-url-get
http://www.dashbay.com/2011/05/internet-explorer-caches-ajax/
·
Monday, 02 April 2018 17:48
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post