Why the names of some css, js files have random numbers in them?

blank_kuma

Some websites seem to have file names such as 'assets/app-02b4523sev8fsd56e.js'. I have noticed that these numbers do not change though, so I thought it has something to do with security but I am not sure. Is there any reason behind this?

Remote

This is normally to break caches stored by the browser so that the latest version of a file is loaded. Every time a file is changed this value will normally be changed also. This can be done manually by changing the filename and/or the paths in other files referencing this file, or this can be done programatically in some way. You may also see this done like the following and it may also contain a timestamp rather than a hash like the above:

assets/scripts.js?v=20150611190618

This is often referred to as a 'cache-buster' amongst other names.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

Why have some external javascript files ?numbers?

From Dev

Why do some files names in Linux start with numbers?

From Dev

Why '+=' operator in double gives some random numbers?

From Dev

Create multiply amount of files with random names in python and zip them

From Dev

Windows batch script to rename files that have random names?

From Dev

Variable names with random numbers

From Dev

why does pick random doesnt pick some numbers in scratch?

From Dev

Why do some some files in /etc have a numeric prefix?

From Dev

Why do some clojure functions have dots at the end or beginning of their names?

From Dev

How to cut some text from several files, replace them with names and some more?

From Dev

Why do some websites have link files like "afs342sf.css" instead of "main.css"?

From Dev

how do I read in numbers from a file and assign variables to them when the numbers have some text before them on the line in the file

From Dev

TortoiseGit: Why do some of my branches not have revision numbers?

From Dev

Why have all CSS files in one folder?

From Dev

Why do some js files begin with (function() {

From Dev

Find the row of highest numbers from each of names or group who'd has been have a some of similarity of names then sumif their values group of names

From Dev

How to have a list of random numbers by ensuring all of them at least once used?

From Dev

Why do files with longer names have a smaller hitbox on the desktop?

From Dev

Why do some HTML/CSS designers complicate class names in their HTML?

From Dev

Why is there a $ in some directory names?

From Dev

Files names with an ' (apostrophe) inside of them

From Dev

Why do some Linux files have a 'd' suffix?

From Dev

How to remove random numbers and letters from Drupal css/js file

From

Store files with unique/random names

From Dev

Random names for files in php 7

From Dev

How have dynamic class names in LESS CSS and use them as values in function

From Dev

Why do some hex numbers have a 2s compliment but some do not?

From Dev

I have 2 repos. And I want to sync some files of them?

From Dev

I have a zip file. I extracted it and modified some files. How do I list them?

Related Related

  1. 1

    Why have some external javascript files ?numbers?

  2. 2

    Why do some files names in Linux start with numbers?

  3. 3

    Why '+=' operator in double gives some random numbers?

  4. 4

    Create multiply amount of files with random names in python and zip them

  5. 5

    Windows batch script to rename files that have random names?

  6. 6

    Variable names with random numbers

  7. 7

    why does pick random doesnt pick some numbers in scratch?

  8. 8

    Why do some some files in /etc have a numeric prefix?

  9. 9

    Why do some clojure functions have dots at the end or beginning of their names?

  10. 10

    How to cut some text from several files, replace them with names and some more?

  11. 11

    Why do some websites have link files like "afs342sf.css" instead of "main.css"?

  12. 12

    how do I read in numbers from a file and assign variables to them when the numbers have some text before them on the line in the file

  13. 13

    TortoiseGit: Why do some of my branches not have revision numbers?

  14. 14

    Why have all CSS files in one folder?

  15. 15

    Why do some js files begin with (function() {

  16. 16

    Find the row of highest numbers from each of names or group who'd has been have a some of similarity of names then sumif their values group of names

  17. 17

    How to have a list of random numbers by ensuring all of them at least once used?

  18. 18

    Why do files with longer names have a smaller hitbox on the desktop?

  19. 19

    Why do some HTML/CSS designers complicate class names in their HTML?

  20. 20

    Why is there a $ in some directory names?

  21. 21

    Files names with an ' (apostrophe) inside of them

  22. 22

    Why do some Linux files have a 'd' suffix?

  23. 23

    How to remove random numbers and letters from Drupal css/js file

  24. 24

    Store files with unique/random names

  25. 25

    Random names for files in php 7

  26. 26

    How have dynamic class names in LESS CSS and use them as values in function

  27. 27

    Why do some hex numbers have a 2s compliment but some do not?

  28. 28

    I have 2 repos. And I want to sync some files of them?

  29. 29

    I have a zip file. I extracted it and modified some files. How do I list them?

HotTag

Archive