Skip to content

Remove timestamps within URLs generated by dash-renderer when soft reloading CSS #1359

@rpkyle

Description

@rpkyle

All references to ?m= have been expunged from Dash for R within plotly/dashR#201, yet this warning appears on soft reloading CSS:

image

I believe the cause is L35745 within dash_renderer.dev.js, which appends a CSS modification timestamp to the request coming in to the backend from the renderer:

if (a.modified > 0) {
  var link = document.createElement('link');
  link.href = "".concat(a.url, "?m=").concat(a.modified);
  link.type = 'text/css';
  link.rel = 'stylesheet';

  this._head.appendChild(link); // Else the file was deleted.
}

Assuming it's reasonable, I suggest modifying dash-renderer so that these requests are no longer made when soft reloading stylesheets.

@Marc-Andre-Rivet @alexcjohnson

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugsomething broken

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions