caching - Docker Error: CSS File in Mapped Volume Fails to Update -


system setup:

when edit css file in flask server <link rel="stylesheet" href="{{ url_for('static', filename='styles/bootstrap.css') }}">, following things seem happen:

  1. the changes not show when reload localhost test page.
  2. the changes not show when remove/rerun container.
  3. the changes not show when stop/restart container.

at first, thought might web browser cache problem, not. have tested problem against hard reload, different browsers , manner of browser cache clearing. on top of this, when enter container , examine file, none of changes show in 'cat' or 'grep' call. but, examinations of file on own system show changes have indeed occurred on file.

the way can seem these changes propagate if refactor file name name have not used css file. <link rel="stylesheet" href="{{ url_for('static', filename='styles/bootstrap1.css') }}"> but, if refactor name original name, old version of file once again shows in cat commands , file requests.

problem: virtualbox memory
not know happening, seems caching problem virtualbox. on hunch, "reset" boot2docker image in virtualbox , latest changes made file prior reset propagated.

but, there not appear way adjust virtualbox prevent caching problem occurring. "use host i/o cache" toggle permanently set on in settings > storage image.

perhaps guys @ docker can this. sounds there memory management problem isn't isolated case. similar problem has been documented here performing web app edits through virtualbox. and, doesn't seem useful editing have reset virtualbox every time make style change.


Comments

Popular posts from this blog

gridview - Yii2 DataPorivider $totalSum for a column -

java - Suppress Jboss version details from HTTP error response -

Sass watch command compiles .scss files before full sftp upload -