Hoʻoponopono i nā pilikia caching me Flash, JavaScript, XML, KML a i ʻole Google Maps

Depositphotos 27736851 s

He pou pōkole a momona kēia ma nā pilikia caching. Kūkulu ʻia nā pūnaewele a me nā mea nānā e hoʻonui pono i nā kumuwaiwai. Hana maikaʻi lākou i kekahi manawa i ka hopena hopena haki maoli i kāu pūnaewele hōʻeuʻeu ma kahi o ka hoʻohou hou ʻana i nā manawa āu e makemake ai. I kēia lā e hana pū ana au JW Mea Pâʻani, he mea pāʻoni kiʻi Flash e huki i ka papa inoa o nā kiʻi ʻoniʻoni ma o kahi faile XML.

ʻO ka pilikia ke hōʻano hou nei mākou i ka faila me nā pūnaewele pūnaewele hou a me nā papa hoʻomaʻamaʻa. Inā hoʻomau ka poʻe kūʻai mai i ka ʻaoʻao i kēlā me kēia lā, e hoʻoili ia i kahi mana cache o ka papa inoa a hōʻike ʻole iā lākou i ka mea hou a me nā mea nui loa.

A ʻo kahi hopena, pono wau e hack i ka SWF mea kuhi i manaʻo ia e hoʻouka nei i kahi papa inoa hou i kēlā me kēia manawa.

var video = new SWFObject('player.swf','mpl','670','280','9');
var playlist = 'playlist.xml't='+Math.round(1000 * Math.random());
video.addParam('allowscriptaccess','always');
video.addParam('allowfullscreen','true');
video.addParam('flashvars','&file='+playlist+'&playlistsize=350&controlbar=over&playlist=right');
video.write('video');

ʻO ke ala aʻu i hoʻopunipuni ai i ka mea pāʻani ma ke kau ʻana i kahi querystring ma ka inoa papa inoa i hoʻokumu i kahi helu kaulike me ka hoʻohana ʻana iā JavaScript. He mea ʻole ka mea e pā i ka ʻaoʻao, e ʻimi ana ia i kekahi inoa inoa ʻokoʻa, no laila e huki ka mea pāʻani i ka papa inoa hou i kēlā me kēia manawa.

ʻAʻole maʻalahi kēia no JW Player, ua hoʻohana pū wau i kēia ʻenehana no Google Maps ke pili pū me nā faile KML e loli nui. E hana maʻalahi i kahi querystring random a e hoʻouka hou ka ʻōnaehana i ka faila KML (kūpaʻa) i kēlā me kēia manawa ke kipa a ka mea hoʻohana. He hack ia, akā he ala maʻalahi ia e hoʻohuli i ka caching aku i loko o kēia mau noi ʻaʻohe o lākou koho.

hana manaʻo hoʻopuka

  1. 1

Pehea kou manaʻo?

Ke hoʻohana nei kēia pūnaewele i ka Akismet e ho'ēmi i ka spam. E aʻo pehea e hanaʻia ai kāuʻikeʻikepili.