Page 1 of 1

Plain text, No file extension

Posted: Fri Feb 22, 2019 10:14 pm
by digizar
Is it -and if .. how- possible to create a simple text file without an automatic extension (html, ...)?
Pe the server configuration file .htaccess (that has the extension .htaccess).
And to automatically upload that file during 'Publish to Web'.
It means, that is a simple plain text file, handled by WWWB.

Reason:
My provider (one.com) automatically loads the content of websites into the cache. Which means, it ist not immendiately updated when a new version ist published. It needs a few minutes. That is nasty when the site is changed.
To prevent that delay, I have to submit .htaccess with the content:
#FreeScript
Header add "disablevcache" "true"


But I could not find any object/file type in WWWB to achive that.

Thanks i.a. -digi-

Re: Plain text, No file extension

Posted: Sat Feb 23, 2019 7:48 am
by Pablo
You can use the 'File Publisher' object to publish additional files with the page.

However, in this case it may be better to upload the file only once.

Re: Plain text, No file extension

Posted: Thu Feb 28, 2019 1:17 pm
by digizar
Pablo wrote:
Sat Feb 23, 2019 7:48 am
You can use the 'File Publisher' object to publish additional files with the page.
However, in this case it may be better to upload the file only once.
Works perfect. Just put it once into index.html