This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm that you accept these cookies being set.

App .lp and 400 bad request
#1
Hello everyone,

I created a website as a PWA application that I installed as FTP in apps/data/fcs - Everything works perfectly, but I have a few questions.

if I make a link like for example :

Code:
<a href=“test.lp”>test</a>


I get to the test.lp page, but if I go to the address bar, with same link, I get an error 400 bad request

How can I resolve this?

Subsidiary questions: is it possible to modify the ngynx configuration to manage the cache?

Thanks you
Reply
#2
Direct link does not work because Referer/Origin headers are missing. For security reasons any requests to app .lp files apart from index.lp must originate from the app itself.

What exactly do you want to change in the web server configuration? To prevent caching of updated files you should append app version string to all JS/CSS resource links. For development you can use os.time() as a version string.
Reply


Forum Jump: