Compare commits

...

2 Commits

Author SHA1 Message Date
askang04
988f80c4fb Untrack non-static files; keep .gitignore whitelist 2026-07-04 22:05:57 +00:00
Replit Agent
9558ae4b6e Saved progress at the end of the loop
Replit-Commit-Author: Agent
Replit-Commit-Session-Id: f5797e65-2210-4d2e-bf70-278d8a0098c1
Replit-Commit-Checkpoint-Type: full_checkpoint
Replit-Commit-Event-Id: 768137b7-5473-49c3-b27e-38dfc1479e0e
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/2a2c58da-54a0-4c86-8ad0-3b93439f70de/f5797e65-2210-4d2e-bf70-278d8a0098c1/D15BHvH
Replit-Helium-Checkpoint-Created: true
2026-07-04 22:01:02 +00:00
5 changed files with 13 additions and 50 deletions

13
.gitignore vendored Normal file
View File

@@ -0,0 +1,13 @@
# Ignore everything by default
/*
# Keep this file
!/.gitignore
# Whitelist: pure static site source only
!/*.html
!/*.js
!/*.css
# Whitelist: images used by the site
!/images/

32
.replit
View File

@@ -1,32 +0,0 @@
modules = ["python-3.11"]
[workflows]
runButton = "Project"
[[workflows.workflow]]
name = "Project"
mode = "parallel"
author = "agent"
[[workflows.workflow.tasks]]
task = "workflow.run"
args = "Start application"
[[workflows.workflow]]
name = "Start application"
author = "agent"
[workflows.workflow.metadata]
outputType = "webview"
[[workflows.workflow.tasks]]
task = "shell.exec"
args = "python3 serve.py"
waitForPort = 5000
[[ports]]
localPort = 5000
externalPort = 80
[agent]
expertMode = true

View File

Binary file not shown.

Before

Width:  |  Height:  |  Size: 32 KiB

View File

@@ -1,18 +0,0 @@
import http.server
import socketserver
PORT = 5000
class NoCacheHandler(http.server.SimpleHTTPRequestHandler):
def end_headers(self):
self.send_header('Cache-Control', 'no-store, no-cache, must-revalidate, max-age=0')
self.send_header('Pragma', 'no-cache')
self.send_header('Expires', '0')
super().end_headers()
class ReusableTCPServer(socketserver.TCPServer):
allow_reuse_address = True
with ReusableTCPServer(("0.0.0.0", PORT), NoCacheHandler) as httpd:
print(f"Serving on port {PORT} with cache disabled")
httpd.serve_forever()