Skip to content

Javascript files are cached in browser cache  #16

@bartbrouwer

Description

@bartbrouwer

The javascript files ConsentController.js and klaro.js are both part of the HTML without any version reference.
Changes in these files will not apply for visitors of the website with an earlier version which is cached by the browser, till the visitor clears the browser cache. By upgrading from 1.3 to 2.0 this gave us lot of troubles.

Possible fixes are: make the version of the extension part of the javascript URL, for example:
<script src="/Javascript/Controller/ConsentController.js?v=2.0.0"></script>
When a new version of the extension is released, the browser will automaticly download the script from the server instead of using the browser cache.

But maybe better: use the Typo3 PageRenderer to inject javascript files so typo3 can handle the files and eventually combine/merge the javascript with other scripts.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions