javascript - How do I implement a cache buster , if I use git? -


  & lt; link rel = "/ style / style.css" / & gt;   

तो यह मेरी index.html है।

अगर मैं इसे सहेजता हूं, तो मैं खुद को style.css को कार्यान्वित करना चाहूंगा? संस्करण = 3 ... तो यह बस्ट्स कैश

ऐसा करने का सबसे आसान तरीका क्या है?

जावास्क्रिप्ट का उपयोग करके आप बस

  & lt; स्क्रिप्ट टाइप करें = "टेक्स्ट / जावास्क्रिप्ट" & gt; Document.write ('& lt; link rel = "स्टाइलशीट" प्रकार = "text / css" href = "style.css? संस्करण =' + (नया दिनांक ())। GetTime () + '" & gt;'); & Lt; / स्क्रिप्ट & gt;   

यदि आप किसी सर्वर-साइड स्क्रीप्टिंग का उपयोग करते हैं तो यह आसान हो सकता है `

  & lt; link href =" / style / style.css? संस्करण = & lt;? Php इको टाइम ()? & Gt; `   

Comments

Popular posts from this blog

mysql - BLOB/TEXT column 'value' used in key specification without a key length -

c# - Using Vici cool Storage with monodroid -

python - referencing a variable in another function? -