P.Nuzum P.Nuzum - 1 month ago 7
Javascript Question

How to stop “GET” from being logged

Whenever something is loaded using

href
or
src
, a
GET
is logged in my debug console. How can I stop this from being logged.

This happens every time a page is loaded. Using Node.js, Express, and Pug.

In the head

link(rel='stylesheet'ref='https://maxcdn.bootstrapcdn.com/bootstrap/3...')
link(rel='stylesheet', href='/stylesheets/style.css')
link(rel='stylesheet' href='/stylesheets/magnific-popup.css')
script(type='text/javascript' src='/js/jquery.min.js')
script(src='https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/js/bootstr...')
script(src="/js/jquery.magnific-popup.min.js")
script(src="/js/jquery.magnific-popup.js")
script(src='/js/jssor.slider.mini.js')
script(src='/js/socket.io.js')


Debug Console

GET /stylesheets/style.css 200 8.784 ms - 8668
GET /stylesheets/magnific-popup.css 304 4.629 ms - -
GET /js/jssor.slider.mini.js 304 4.195 ms - -
GET /js/jquery.magnific-popup.min.js 304 6.541 ms - -
GET /js/jquery.magnific-popup.js 404 7.940 ms - 40
GET /js/jquery.min.js 304 12.245 ms - -
GET /js/socket.io.js 304 0.623 ms - -


Emile Bergeron
It happened during development and now on a live server. Doesn't matter what browser I use.

Server Code:
#!/usr/bin/env node
var app = require('../app');
var debug = require('debug')('PhotosAndVideos-master:server');
var http = require('http');
var path = require("path");
var port = normalizePort(process.env.PORT || '3000');
app.set('port', port);
console.log("listening on port:" + port);
var server = http.createServer(app);
server.listen(port);
server.on('error', onError);
server.on('listening', onListening);

Answer

can you make sure your debug console is not disabling your browser cache?

enter image description here

Comments