using expressjs, chrome, angular:
I'm trying to add
<div style="background: url({{ data.image }});"></div>
it works fine, but after several reloads(~3-5) of page image stops to display, network tab shows (pending) in status, although, chrome dev. tools show all the time that the style is set to "background url(http://localhost:4000/media/cover.jpg)"
Tried to turn off caching in as possible reason - didn't help. Wrapping into ng-style
did the same. Firefox works fine.
Solved by editing server.js:
used in server.js
app.get('/:addr', function(req, res, next) {
if (req.params.addr === 'media') {
return next();
}
});