uci-ieee / ops-webpages-2023-2024

0 stars 2 forks source link

improve cache busting to work with file paths #125

Open dylanvu opened 7 months ago

dylanvu commented 7 months ago

right now, in createHashMapOfFiles we create a hash map keyed by file name and value of the hashed file name.

However, as we saw in #123 , this causes any directories that happen to have the same name as the key value to be replaced incorrectly.

This can be avoided if we key the output of the createHashMapOfFiles and value with the actual path.

Example:

"highlight.js" : "highlight.123214.js" is the current behavior.

"/js/highlight.js" : "/js/highlight.123214.js" should be the new behavior.

Make sure highlight.js corresponds/maps well to the css references also.