Prevent stale resume downloads after deployment
This commit is contained in:
@@ -25,7 +25,7 @@ resumes/ Matching HTML/PDF files for each generated version
|
||||
The standalone generator reads `Alexander Herlan Resume 2024.md`, creates a self-contained HTML document, and prints that exact HTML to PDF using Python Playwright. The template and CSS are in `scripts/generate_resume.py`. The default `--layout original` retains the sidebar design with left-column section labels, right-column content, Letter pages, and green header accents. Section starts use normal-flow grid layout to preserve the PDF text reading order. Use `--layout ats` for the optional single-column layout. Both layouts use the same Markdown and local Raleway/Lato fonts when available, with Arial as a fallback. The original PDF is only a design reference, and is not needed to run the generator.
|
||||
|
||||
**Selected website resume: version 17.** The portfolio's **Open CV** link uses
|
||||
`/api/resume`, which serves the styled `resumes/resume-v17.pdf` as
|
||||
`/api/resume?v=resume-v17`, which serves the styled `resumes/resume-v17.pdf` as
|
||||
`Alexander-Herlan-Resume-v17.pdf`. Its source is `resumes/resume-v17.md`, with
|
||||
the corrected `alexherlandev@gmail.com` email and matching HTML/PDF files. Both
|
||||
deployment configurations include the version 17 PDF. Version 18 remains the
|
||||
@@ -38,6 +38,14 @@ Generating a new version does not automatically change the selected website
|
||||
resume. PDF text extraction and Word reading order are checked locally; actual
|
||||
application-field mapping depends on the receiving system.
|
||||
|
||||
The profile API derives the CV link's version from the selected `RESUME_PATH`,
|
||||
so changing the selected PDF also changes the URL and bypasses previously cached
|
||||
downloads. PDF responses send `Cache-Control: no-store`; the unversioned
|
||||
`/api/resume` endpoint remains available. The query parameter is a cache marker,
|
||||
not a selector for historical files. To check a deployment, follow the live
|
||||
`/api/profile` response's `resume_url` and compare the downloaded PDF's bytes
|
||||
with the selected file, rather than relying only on its filename.
|
||||
|
||||
|
||||
Install the generator dependencies separately from the web backend:
|
||||
|
||||
|
||||
Reference in New Issue
Block a user