I'm making a GET request to get user (by user id) but I'm receiving a 304 status code.

How would I solve this?

routes/user.js

```
...
router.get('/secret/:userId', requireSignin, (req, res) => {
  console.log('id retrieved')
})

router.param('userId', userById)

```

controllers/user.js

```
const User = require("../models/User");

exports.userById = (req, res, next, id) => {
    User.findById(id).exec((err, user) => {
        if (err || !user) {
            return res.status(400).json({
                error: 'User not found'
            });
        }
    res.json(user)
    console.log("id retrieved successfully")
        next();
    });
};

```

controllers/auth.js

```
exports.requireSignin = expressJwt({
    secret: process.env.JWT_SECRET,
    algorithms: ['HS256'],
    userProperty: 'auth'
});

exports.isAuth = (req, res, next) => {
    let user = req.profile && req.auth && req.profile._id == req.auth._id;
    if (!user) {
        return res.status(403).json({
            error: 'Access denied'
        });
    }
    next();
};

```