Prebid.js icon indicating copy to clipboard operation
Prebid.js copied to clipboard

prebid.js browser caching question

Open headerbidding opened this issue 10 years ago • 3 comments

Is it necessary to give a uniquely different file name to my customized prebid.js file, to prevent a different version of prebid.js from a different site being loaded from the browser cache?

(In case the visitor has previously visited another site using Prebid and cached a different version of prebid.js with different adapters.)

headerbidding avatar Nov 20 '16 21:11 headerbidding

I would always have the standard prebid.js file as it is and the file where I host my wrapped named differently. I have my wrapper / bidders in a file called pbfile.js not sure if this is what you meant?

but yes id call the files differently, you could always rename the prebid.js file to prebid_(version number).js

mrpbennett avatar Nov 21 '16 11:11 mrpbennett

@headerbidding The browser HTTP cache should be based on the full URL, not just the filename. So as long as you are hosting for your own server you should be fine.

mkendall07 avatar Nov 21 '16 14:11 mkendall07

Cool! Thank you!

headerbidding avatar Nov 21 '16 15:11 headerbidding