sigma.parsers.gexf не может загрузить внешний файл в Firefox
Выполнение этого кода ниже и получение и получение ошибки 304.
Я попытался сделать это более длинной явной ссылкой и даже передать файл в функцию маршрутизации.
Я запускаю в браузере Firefox, когда я не пытаюсь загрузить внешний файл, все в порядке, возникают трудности только при наличии внешнего файла. Кажется, что все пакеты и файлы загружаются правильно, но веб-URL-адрес пуст, когда я перехожу к нему:
127.0.0.1 - - [30/Jul/2018 22:17:13] "GET /csv_files/test.gexf HTTP/1.1" 304 -
************************************************
************************************************
************************************************
-app
--->static
------->csv_files
----------->test.gexf
------->images
------->js
------->src
--->templates
------->html_I_am_linking_with
************************************************
************************************************
************************************************
<!-- START SIGMA IMPORTS -->
<script src="{{ url_for('static', filename='src/sigma.core.js') }}"></script>
<script src="{{ url_for('static', filename='src/conrad.js') }}"></script>
<script src="{{ url_for('static', filename='src/utils/sigma.utils.js') }}"></script>
<script src="{{ url_for('static', filename='src/utils/sigma.polyfills.js') }}"></script>
<script src="{{ url_for('static', filename='src/sigma.settings.js') }}"></script>
<script src="{{ url_for('static', filename='src/classes/sigma.classes.dispatcher.js') }}"></script>
<script src="{{ url_for('static', filename='src/classes/sigma.classes.configurable.js') }}"></script>
<script src="{{ url_for('static', filename='src/classes/sigma.classes.graph.js') }}"></script>
<script src="{{ url_for('static', filename='src/classes/sigma.classes.camera.js') }}"></script>
<script src="{{ url_for('static', filename='src/classes/sigma.classes.quad.js') }}"></script>
<script src="{{ url_for('static', filename='src/classes/sigma.classes.edgequad.js') }}"></script>
<script src="{{ url_for('static', filename='src/captors/sigma.captors.mouse.js') }}"></script>
<script src="{{ url_for('static', filename='src/captors/sigma.captors.touch.js') }}"></script>
<script src="{{ url_for('static', filename='src/renderers/sigma.renderers.canvas.js') }}"></script>
<script src="{{ url_for('static', filename='src/renderers/sigma.renderers.webgl.js') }}"></script>
<script src="{{ url_for('static', filename='src/renderers/sigma.renderers.svg.js') }}"></script>
<script src="{{ url_for('static', filename='src/renderers/sigma.renderers.def.js') }}"></script>
<script src="{{ url_for('static', filename='src/renderers/webgl/sigma.webgl.nodes.def.js') }}"></script>
<script src="{{ url_for('static', filename='src/renderers/webgl/sigma.webgl.nodes.fast.js') }}"></script>
<script src="{{ url_for('static', filename='src/renderers/webgl/sigma.webgl.edges.def.js') }}"></script>
<script src="{{ url_for('static', filename='src/renderers/webgl/sigma.webgl.edges.fast.js') }}"></script>
<script src="{{ url_for('static', filename='src/renderers/webgl/sigma.webgl.edges.arrow.js') }}"></script>
<script src="{{ url_for('static', filename='src/renderers/canvas/sigma.canvas.labels.def.js') }}"></script>
<script src="{{ url_for('static', filename='src/renderers/canvas/sigma.canvas.hovers.def.js') }}"></script>
<script src="{{ url_for('static', filename='src/renderers/canvas/sigma.canvas.nodes.def.js') }}"></script>
<script src="{{ url_for('static', filename='src/renderers/canvas/sigma.canvas.edges.def.js') }}"></script>
<script src="{{ url_for('static', filename='src/renderers/canvas/sigma.canvas.edges.curve.js') }}"></script>
<script src="{{ url_for('static', filename='src/renderers/canvas/sigma.canvas.edges.arrow.js') }}"></script>
<script src="{{ url_for('static', filename='src/renderers/canvas/sigma.canvas.edges.curvedArrow.js') }}"></script>
<script src="{{ url_for('static', filename='src/renderers/canvas/sigma.canvas.edgehovers.def.js') }}"></script>
<script src="{{ url_for('static', filename='src/renderers/canvas/sigma.canvas.edgehovers.curve.js') }}"></script>
<script src="{{ url_for('static', filename='src/renderers/canvas/sigma.canvas.edgehovers.arrow.js') }}"></script>
<script src="{{ url_for('static', filename='src/renderers/canvas/sigma.canvas.edgehovers.curvedArrow.js') }}"></script>
<script src="{{ url_for('static', filename='src/renderers/canvas/sigma.canvas.extremities.def.js') }}"></script>
<script src="{{ url_for('static', filename='src/renderers/svg/sigma.svg.utils.js') }}"></script>
<script src="{{ url_for('static', filename='src/renderers/svg/sigma.svg.nodes.def.js') }}"></script>
<script src="{{ url_for('static', filename='src/renderers/svg/sigma.svg.edges.def.js') }}"></script>
<script src="{{ url_for('static', filename='src/renderers/svg/sigma.svg.edges.curve.js') }}"></script>
<script src="{{ url_for('static', filename='src/renderers/svg/sigma.svg.labels.def.js') }}"></script>
<script src="{{ url_for('static', filename='src/renderers/svg/sigma.svg.hovers.def.js') }}"></script>
<script src="{{ url_for('static', filename='src/middlewares/sigma.middlewares.rescale.js') }}"></script>
<script src="{{ url_for('static', filename='src/middlewares/sigma.middlewares.copy.js') }}"></script>
<script src="{{ url_for('static', filename='src/misc/sigma.misc.animation.js') }}"></script>
<script src="{{ url_for('static', filename='src/misc/sigma.misc.bindEvents.js') }}"></script>
<script src="{{ url_for('static', filename='src/misc/sigma.misc.bindDOMEvents.js') }}"></script>
<script src="{{ url_for('static', filename='src/misc/sigma.misc.drawHovers.js') }}"></script>
<!-- END SIGMA IMPORTS -->
<script src="{{ url_for('static', filename='src/plugins/sigma.parsers.gexf/gexf-parser.js') }}"></script>
<script src="{{ url_for('static', filename='src/plugins/sigma.parsers.gexf/sigma.parsers.gexf.js') }}"></script>
<div id="container">
<style>
#graph-container {
top: 0;
bottom: 0;
left: 0;
right: 0;
position: absolute;
}
</style>
<div id="graph-container"></div>
</div>
<script>
/**
* Here is just a basic example on how to properly display a graph
* exported from Gephi in the GEXF format.
*
* The plugin sigma.parsers.gexf can load and parse the GEXF graph file,
* and instantiate sigma when the graph is received.
*
* The object given as the second parameter is the base of the instance
* configuration object. The plugin will just add the "graph" key to it
* before the instanciation.
*/
sigma.parsers.gexf('static/csv_files/test.gexf', {
container: 'graph-container'
});
</script>