Skip to content

render_bundle is serving old (cached?) file after some time #161

@magicznyleszek

Description

@magicznyleszek

I have a problem with render_bundle serving old JS file after some time. Nothing I try to do helps. I see that the file being served is different than the one in webpack-stats.json.

The only thing I am able to do to make it work again is restarting my docker container 🙁


This is my config:

WEBPACK_LOADER = {
    'DEFAULT': {
        'BUNDLE_DIR_NAME': 'jsapp/compiled/',
        'POLL_INTERVAL': 0.5,
        'TIMEOUT': 5,
    }
}

And I just simply use this in my html template:

{% load render_bundle from webpack_loader %}
{% render_bundle 'app' 'js' %}

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