codex.docs icon indicating copy to clipboard operation
codex.docs copied to clipboard

No hash identifier for scripts and styles

Open talyguryn opened this issue 3 years ago • 1 comments

Browser cached these files and requires to empty cache

image

talyguryn avatar Aug 26 '22 14:08 talyguryn

Same problem fixed in Hawk 1.0 the following way for Webpack builder and Twig engine.

  1. Save webpack build hash to the separate config file https://github.com/codex-team/hawk/blob/master/hawk/webpack.config.js#L75-L87

  2. Read this file while app is loading and set the template variable https://github.com/codex-team/hawk/blob/master/hawk/app.js#L156-L167

  3. Add the hash identifier to layout template https://github.com/codex-team/hawk/blob/master/hawk/views/layout.twig#L11

talyguryn avatar Sep 09 '22 13:09 talyguryn