Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

File timestamp of generated preload file is wrong #14

Open
Frank683 opened this issue Sep 11, 2019 · 0 comments
Open

File timestamp of generated preload file is wrong #14

Frank683 opened this issue Sep 11, 2019 · 0 comments

Comments

@Frank683
Copy link

Since the target preload file is created with

var preloadFile = firstFile.clone({contents: false});

all file attributes including creation and modification timestamps are cloned from the firstFile which is the first file coming out of the stream.

This leads to subsequent problems when creating e.g. a sap-ui-cachebuster-info.json file.
When the firstFile has not been changed for a long time the Component-preload.js will be listed in the cachebuster file with the old timestamp of the firstFile which will lead to clients loading the outdated version of Component-preload.js from the browser cache despite a newer version being available on the server.

Since this repo is not maintained anymore I just want to report this for any others who might face this problem in the future.

I will try to find a workaround by manually setting the modification date of Component-preload.js after it has been created in my gulp build script.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant