• Skip to main content
  • Skip to primary sidebar

RNTLab.com

The Ultimate Shortcut to Learn Electronics and Programming with Open Source Hardware and Software

  • Courses
  • Forum
    • Forum
    • Ask Question
  • Shop
  • Account
  • Blog
  • Login

issue with updating app file javascript .js with firebase deploy

Q&A Forum › Category: Other › issue with updating app file javascript .js with firebase deploy
0 Vote Up Vote Down
pascal ingrasciotta asked 3 years ago

Hi,

In the Course “Firebase Web App with ESP32 and ESP8266″

I notice that when I change something in the “index.js” and update the app with firebase deploy, the app is not (always) updating. After hours to understand why, I success by changing the name of file index.js, for exemple index_1.js and changing the path in the index.html file too. And it work !

Have you the same issue ?
If not how can you explain mine ?

Thanks for your reply
Regards
Pascal

Question Tags: updating web app firebase javascript in vscode plateformio "firebase deploy"
3 Answers
0 Vote Up Vote Down
Sara Santos Staff answered 3 years ago

Hi.
The javascript files are cached in the web browser.
So, you need to hard refresh your web browser when you update a javascript file or upload a file with the same name.
I hope this helps.
Regards,
Sara
 

0 Vote Up Vote Down
pascal ingrasciotta answered 3 years ago

Hi Sara,
 
Thanks for you fast answer.
I tried to hard refresh and the behaviour is the same.
I tried with several web browser (chrome, firefox, brave, opera)
 
Changing file javascript name is for the moment the only solution I found.
 
Regards
Pascal
 

0 Vote Up Vote Down
Sara Santos Staff answered 3 years ago

That’s weird.
Did you deploy the application after making changes?
Can you take a look at the following link and see if it helps: https://stackoverflow.com/questions/3951187/javascript-file-not-updating-no-matter-what-i-do
Regards,
Sara
 

Primary Sidebar

Login to Ask or Answer Questions

This Forum is private and it’s only available for members enrolled in our Courses.

Login »

Latest Course Updates

  • [New Edition] Build ESP32-CAM Projects eBook – 2nd Edition April 16, 2025
  • [eBook Updated] Learn ESP32 with Arduino IDE eBook – Version 3.2 April 16, 2025

You must be logged in to view this content.

Contact Support - Refunds - Privacy - Terms - MakerAdvisor.com - Member Login

Copyright © 2013-2025 · RandomNerdTutorials.com · All Rights Reserved

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.