Does anyone know how to set up Browser Caching in IIS7 via the web.config file ?
Thx
Does Jeff's answer in this question help?
IIS7 Cache-Control
Related
We are testing an upgrade from Typo3 8LTS to 9LTS and speaking URLs seem to work in typo3 itself, but the server returns a 404. Is the rewriting of URLs supposed to work out of the box on IIS? Or do we need to add some extra configuration manually, e.g. to the Web.config?
We tried the official documentation but there is only some information about an Apache server. And google was of no help either.
In sysext/install/Resources/Private/FolderStructureTemplateFiles/root-web-config you can find a demo IIS configuration. I assume this part is missing in your TYPO3 installation.
When trying to perform well in Google's Pagespeed insights, we've hit a situation.
We enabled mod_pagespeed and that worked. It did what it's supposed to do.
However, when looking at the results, on GT Metrix and Pagespeed Insights when we have mod_pagespeed enabled, mod_expires and browser caching doesn't work.
Is this by design? If so, is there anything globally or via .htaccess to I can code in to make browser caching happen?
I have same problem, also my css links that are indeed moved to footer by pagespeed's prioritize_critical_css are causing render-blocking error.
It happens even if I set pagespeed to ONLY do above-the-fold css optimization:
<IfModule pagespeed_module>
ModPagespeed On
ModPagespeedRewriteLevel PassThrough
ModPagespeedEnableFilters prioritize_critical_css
</IfModule>
When I set ModPagespeed Off, problem dissapears... For now I see browser caching warning for png images mostly (I have mod_expires set to "access 1 year", but when I'm trying to use extend_cache in pagespeed instead mod_exipre, even more browser caching warnings appear).
After some google search i found this removed the warning from insights:
ModPagespeedInPlaceResourceOptimization off
Docs on In-Place Resource Optimization.
Here is an answer, by Matthias Redl-Mann, I discovered in google products forum:
So I could solve the problem: The apache user had no access to the
cache directory. Setting a different Cache Path via the
ModPagespeedFileCachePath directive solved the problem. After setting
a path with access for the apache user, everything worked.
My URL is http://merzent.com/love/index.php?u=48
I want to change it like http://merzent.com/love/48
I can do this using htaccess but my app is running in Windows Azure. So, I think I need to do this using web.config and I'm new for this. Any help would be greatly appreciated.
Thanks
I am very new to URL re-writting and I am using Plesk which is Windows based web server and hence I cant use Apache's mod_Rewrite.. can anyone tell me steps for this to happen?
Try ISAPI Rewrite for IIS. It supports mod_rewrite rules of Apache and it is supported by Plesk.
Maybe too late for OP but it might be useful for anyone coming across this. If URL Rewrite is installed in IIS then you can follow this guide to translate htaccess into web.config.
It worked with my case, running PHP website in a shared hosting with Plesk and IIS under ISAPI
I have a php based site hosted on a IIS server. URL like http://host.net/t.php works but
without the php extension does not work. This site was working properly on a LINUX server previously. ISAPI rewrite Life version was installed on the IIS server. But the problem still persists.
IIS versions prior to 7.x doesn't support extension-less URLs without some ISAPI filter.
This is the reason ;)
EDIT:
Read this blog post:
http://thebackshop.posterous.com/extensionless-urls-with-sitecore-using-the-he
Was it useful for you? Good luck! :)
The problem was resolved by installing IIRF Rewrite 3 module.