Welcome toVigges Developer Community-Open, Learning,Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
980 views
in Technique[技术] by (71.8m points)

flask - Random Naming of Resources Files within Jinja

Someone asked me a question, I didn't know how to do it... so maybe we could crowd source this..

The stack is,

  • flask
  • jinja2

The question is,

How could you randomize the naming of resource files on the front end such as style.css and main.js without changing the static file or making different file names of the same static file?

To look something like this,

2909230924.css or 439049024.js the randomized name doesn't really matter, so these are examples.

question from:https://stackoverflow.com/questions/65883471/random-naming-of-resources-files-within-jinja

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to Vigges Developer Community for programmer and developer-Open, Learning and Share
...