A developer must check that the server delivers the correct, updated files. The server might be looking in the wrong folder. This can cause users to see old versions of a website or application.
By Pawan Nayar · from the LLOS AI Learning record
A developer must check that the server delivers the correct, updated files.
The server might be looking in the wrong folder. This can cause users to see old versions of a website or application.
After a developer changes a file, the developer should test the server. The developer can use a command-line tool like `curl`. The developer should request the file's URL. Then, the developer should search for a unique text string from the new edit. If the string is not found, the server is serving an older file. This means the server is likely looking in the wrong folder. The developer must correct the server's folder path. This fix should happen before telling others the work is complete.
A developer updates a JavaScript file for a web application. The developer then checks the live URL with `curl`. The developer searches for a new function name added in the recent edit. The function name is not found. The developer realizes the server is still pointing to an old project folder. The user would have seen the old, broken application. The developer corrects the server's folder path.
Resolved from this lesson's own record — real definitions, not invented for this page.
More from the same record, pulled by shared topic — not written new for this page.
A developer edits a file. The developer then needs to check if the server is actually using that new file.
A server should always allow localhost connections. Localhost connections are for the developer's own machine.
A developer must restart the server after any file change. This makes sure the new code is used.
Build scripts create new files. These new files are called artifacts.
A developer must check that the server delivers the correct, updated files. The server might be looking in the wrong folder. This can cause users to see old versions of a website or application.