cancel
Showing results for 
Search instead for 
Did you mean: 

the idea behind static files

the idea behind static files

What is the idea behind static files if they are just copies or symlinks from other places?

I fail to grasp the advantage for now.

 

Can anyone elaborate?

2 REPLIES

Re: the idea behind static files

@ZakMageKracken

 

“Static” means it can be cached for a site (that is, the file is not dynamically generated). Examples include images and CSS generated from LESS. Magento uses static files to improve the system performance. You can find more details on the links below: 

http://devdocs.magento.com/guides/v2.1/config-guide/cli/config-cli-subcommands-static-view.html 

http://devdocs.magento.com/guides/v2.0/architecture/view/static-process.html 

Magento Certified Solution Specialist | Lead Magento developer
If this response was helpful to you, consider giving kudos to this post

Re: the idea behind static files

Thanks for your reply. Unfortunately these links don't work.

 

I think one reason seems to be that some of those files MIGHT be run over by a preprocessor. Ie. it is possible to minify and merge js files.
I guess if for example preprocessors run over a template file the "final" version is then placed into the static files so next time the preprocessors won't have to run over it again.

 

So with sometimes it being just symlinks it just seems to be unnecessary.