layris3 / Daily-learning-experience-record

daily learning experience
0 stars 0 forks source link

aspNetCore-tag helper #23

Open layris3 opened 3 years ago

layris3 commented 3 years ago

<img src="~/a-1.png" asp-append-version="true" />

asp-append-version tag helper can generate one hash value from the file.once the field changes,the hash value also changed. so if the hash value is not changed that means the field is not changed,so the broswer use the cache!

the html resource <img src="/a-1.png?v=Uy2_qZzGFCxgydQJv9SbM0F5z4K7BxgfNoW8alC2D5A">