Search code examples
javascriptasp.nethtmlproduction-environmentminimize

Production filennames Randomizer && js minifier?


It is not the first time i see it

Ive seen in Facebook source ( and many other sites)

file name like these :

enter image description here

and Js content like this :

enter image description here

The JS is minimized ( whihc I know what is it)

question :

Im sure they aren't tracking these strange names || minimized Js file.

How do they do that ?

is there source code which does it automatically ?

How can I implement these automatically names && auto minimzed ( and hashed named) JS ?


Solution

  • I would assume they have a build system which decides the encoded filename based on certain criteria (revision, etc...). I wouldn't think anyone with a sane mind would do this by hand - it would make maintenance of the site pure agony.