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

Mark Foxx

I have partial understanding of why a developer will have a filename like afs342sf.css opposed to something more readable like main.css - I do not believe that the developer named the file manually; I'm sure it was done programmatically upon insert into whatever database. I'm a bit baffled on why this would be needed, and how it will be called.

If a database has a table with, and excluding others for simplicity:

file_id, file_name, file_display_name, file_size.......... etc.

When called for data it's using file_display_name (afs342sf.css or simply afs342sf) as a reference - href="/yourhost/www/afs342sf.css" - what on earth is the difference when someone can easily use the same GET request info, or have I got this theory all wrong? - I'm a paranoid one typically (apparently good for security) and have confused myself because it could also be the id for it, but isn't that giving away too much? Then there's the thought of what if the program changes the filename upon every request; could it get lost when other requests are incoming, and it doesn't have a fixed address name?

Last but not least, I would much appreciate it if anyone could post any links to pages that could help with stealthy, or concealed file retrieval methods. For the record I do not hide the .php extension - being self taught and learning from a trusted community is overwhelming for knowledge.

Anonymous

You're right, it's not named manually. Arbitrary filenames like that usually mean they are generated with a tool like Assetic. This is primarily used for files that have to be converted before being put on the web (SASS to CSS; Coffeescript to Javascript).

Assetic also has a cache-busting plug-in that generates filenames based on the hash so when the contents change, browsers will be forced to fetch the new file (this is a standard cache-busting technique). This is useful because static files usually have long expiry dates, and there's no other way to alert the browser that the file has changed.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From

Why do some websites have ?utf8=✓ in their title?

From Dev

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

From Dev

Why do some websites have styles that aren't assigned to elements when I inspect the markup?

From Dev

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

From Dev

Why don't some websites have a .html extension in their pages?

From Dev

Why some users only have access to folder instead of all it's subfolders and files

From Dev

Why do we have HTTP verbs like GET, POST and PUT instead of SELECT, INSERT and Update

From Dev

Why ever link files instead of #include them?

From Dev

Why do some languages like C++ and Java have a built-in LinkedList datastructure?

From Dev

Why do have some directories like /var/lib/{docker,sudo} 0711 rights?

From Dev

Why do some websites show the company name next to the URL?

From Dev

Why do I have different IP addresses on different websites?

From Dev

Why have some external javascript files ?numbers?

From Dev

Why do some binary files have null bytes between characters when storing strings?

From Dev

Why some dockers use docker network instead of the link parameter?

From Dev

Why do some primitives have byte-codes and some do not?

From Dev

Why do some laptops not have a GPU slot?

From Dev

Why do some routers not have a WAN port?

From Dev

Why do some of functions have pass

From Java

If a String is immutable, then why do you have to call a method to get the length instead of just accessing a variable, like array.length?

From Dev

Why do some websites offer fonts for free while some make you pay for the same ones?

From Dev

Android deep link working only in some websites

From Dev

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

From Dev

Why do some C projects like nginx and LuaJIT prefix all their code files, functions and data types with the project's name?

From Dev

Facebook Like link to files

From Dev

Why do special device files have inodes?

From Dev

Why do we have .desktop files?

From Dev

Why do I not have to login to websites when using Edge but I do with Chrome?

From Dev

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

Related Related

  1. 1

    Why do some websites have ?utf8=✓ in their title?

  2. 2

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

  3. 3

    Why do some websites have styles that aren't assigned to elements when I inspect the markup?

  4. 4

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

  5. 5

    Why don't some websites have a .html extension in their pages?

  6. 6

    Why some users only have access to folder instead of all it's subfolders and files

  7. 7

    Why do we have HTTP verbs like GET, POST and PUT instead of SELECT, INSERT and Update

  8. 8

    Why ever link files instead of #include them?

  9. 9

    Why do some languages like C++ and Java have a built-in LinkedList datastructure?

  10. 10

    Why do have some directories like /var/lib/{docker,sudo} 0711 rights?

  11. 11

    Why do some websites show the company name next to the URL?

  12. 12

    Why do I have different IP addresses on different websites?

  13. 13

    Why have some external javascript files ?numbers?

  14. 14

    Why do some binary files have null bytes between characters when storing strings?

  15. 15

    Why some dockers use docker network instead of the link parameter?

  16. 16

    Why do some primitives have byte-codes and some do not?

  17. 17

    Why do some laptops not have a GPU slot?

  18. 18

    Why do some routers not have a WAN port?

  19. 19

    Why do some of functions have pass

  20. 20

    If a String is immutable, then why do you have to call a method to get the length instead of just accessing a variable, like array.length?

  21. 21

    Why do some websites offer fonts for free while some make you pay for the same ones?

  22. 22

    Android deep link working only in some websites

  23. 23

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

  24. 24

    Why do some C projects like nginx and LuaJIT prefix all their code files, functions and data types with the project's name?

  25. 25

    Facebook Like link to files

  26. 26

    Why do special device files have inodes?

  27. 27

    Why do we have .desktop files?

  28. 28

    Why do I not have to login to websites when using Edge but I do with Chrome?

  29. 29

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

HotTag

Archive