v2.10.1 - Fix brews lost on back button
This commit is contained in:
1 parent
7f8f39916d
commit
77973f0037
5 files changed
+16
-10
No files matched your search
@@ -117,6 +117,7 @@ app.get('/user/:username', async (req, res, next)=>{
|
||||
|
||||
//Edit Page
|
||||
app.get('/edit/:id', (req, res, next)=>{
|
||||
res.header('Cache-Control', 'no-cache, no-store'); //reload the latest saved brew when pressing back button, not the cached version before save.
|
||||
if(req.params.id.length > 12) {
|
||||
const googleId = req.params.id.slice(0, -12);
|
||||
const editId = req.params.id.slice(-12);
|
||||
|
||||
Reference in new issue
Block a user